diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-12-02 22:23:16 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-12-02 22:23:16 -0300 |
commit | 27a46d78ec43b69a70a1d84c540353e3cb3b04c0 (patch) | |
tree | dc4fc077c325b26d6f7a159419fe4ca55bc29783 /servers | |
parent | 8c6a586b75692eaa67ddaf4bb73edf325cc60e5d (diff) |
Subsurface scattering material param is now working!
Diffstat (limited to 'servers')
-rw-r--r-- | servers/visual/shader_types.cpp | 1 | ||||
-rw-r--r-- | servers/visual/visual_server_scene.cpp | 2 | ||||
-rw-r--r-- | servers/visual_server.h | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/servers/visual/shader_types.cpp b/servers/visual/shader_types.cpp index f799329026..4872135e2a 100644 --- a/servers/visual/shader_types.cpp +++ b/servers/visual/shader_types.cpp @@ -66,6 +66,7 @@ ShaderTypes::ShaderTypes() shader_modes[VS::SHADER_SPATIAL].functions["fragment"]["CLEARCOAT_GLOSS"]=ShaderLanguage::TYPE_FLOAT; shader_modes[VS::SHADER_SPATIAL].functions["fragment"]["ANISOTROPY"]=ShaderLanguage::TYPE_FLOAT; shader_modes[VS::SHADER_SPATIAL].functions["fragment"]["ANISOTROPY_FLOW"]=ShaderLanguage::TYPE_VEC2; + shader_modes[VS::SHADER_SPATIAL].functions["fragment"]["SSS_STRENGTH"]=ShaderLanguage::TYPE_FLOAT; shader_modes[VS::SHADER_SPATIAL].functions["fragment"]["AO"]=ShaderLanguage::TYPE_FLOAT; shader_modes[VS::SHADER_SPATIAL].functions["fragment"]["EMISSION"]=ShaderLanguage::TYPE_VEC3; shader_modes[VS::SHADER_SPATIAL].functions["fragment"]["SPECIAL"]=ShaderLanguage::TYPE_FLOAT; diff --git a/servers/visual/visual_server_scene.cpp b/servers/visual/visual_server_scene.cpp index 0f7dabcc12..6f7dac7f4d 100644 --- a/servers/visual/visual_server_scene.cpp +++ b/servers/visual/visual_server_scene.cpp @@ -1555,7 +1555,7 @@ void VisualServerScene::_light_instance_update_shadow(Instance *p_instance,const float angle = VSG::storage->light_get_param( p_instance->base, VS::LIGHT_PARAM_SPOT_ANGLE); CameraMatrix cm; - cm.set_perspective( angle, 1.0, 0.01, radius ); + cm.set_perspective( angle*2.0, 1.0, 0.01, radius ); Vector<Plane> planes = cm.get_projection_planes(p_instance->transform); diff --git a/servers/visual_server.h b/servers/visual_server.h index 4c9e04a782..9b1a9d81ac 100644 --- a/servers/visual_server.h +++ b/servers/visual_server.h @@ -556,6 +556,7 @@ public: virtual void environment_set_adjustment(RID p_env,bool p_enable,float p_brightness,float p_contrast,float p_saturation,RID p_ramp)=0; virtual void environment_set_ssr(RID p_env,bool p_enable, int p_max_steps,float p_accel,float p_fade,float p_depth_tolerance,bool p_smooth,bool p_roughness)=0; + /* SCENARIO API */ |