mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Added proximity and distance fade to SpatialMaterial
This commit is contained in:
parent
d7468fea5b
commit
bf371dcb32
7 changed files with 151 additions and 1 deletions
|
|
@ -61,6 +61,7 @@ layout(location=12) in highp vec4 instance_custom_data;
|
|||
layout(std140) uniform SceneData { //ubo:0
|
||||
|
||||
highp mat4 projection_matrix;
|
||||
highp mat4 inv_projection_matrix;
|
||||
highp mat4 camera_inverse_matrix;
|
||||
highp mat4 camera_matrix;
|
||||
|
||||
|
|
@ -643,6 +644,7 @@ FRAGMENT_SHADER_GLOBALS
|
|||
layout(std140) uniform SceneData {
|
||||
|
||||
highp mat4 projection_matrix;
|
||||
highp mat4 inv_projection_matrix;
|
||||
highp mat4 camera_inverse_matrix;
|
||||
highp mat4 camera_matrix;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue