summaryrefslogtreecommitdiff
path: root/servers/rendering/renderer_rd/shaders/decal_data_inc.glsl
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-08-18 20:43:25 +0200
committerGitHub <noreply@github.com>2021-08-18 20:43:25 +0200
commitf6626a40e5abc0d2fa2ece53ce501df716841c09 (patch)
tree59e2509fbb784accac1a74437cfe37ff5745e509 /servers/rendering/renderer_rd/shaders/decal_data_inc.glsl
parente1e01427ccaa28c2d1bcbcac012d326722a852cd (diff)
parent700f9d916d41ca9ea8eb9213dbce716fe802f600 (diff)
Merge pull request #51843 from reduz/fixes-to-mobile-renderer-3
More fixes to mobile renderer
Diffstat (limited to 'servers/rendering/renderer_rd/shaders/decal_data_inc.glsl')
-rw-r--r--servers/rendering/renderer_rd/shaders/decal_data_inc.glsl28
1 files changed, 14 insertions, 14 deletions
diff --git a/servers/rendering/renderer_rd/shaders/decal_data_inc.glsl b/servers/rendering/renderer_rd/shaders/decal_data_inc.glsl
index ccaad13311..158096d3c7 100644
--- a/servers/rendering/renderer_rd/shaders/decal_data_inc.glsl
+++ b/servers/rendering/renderer_rd/shaders/decal_data_inc.glsl
@@ -1,18 +1,18 @@
struct DecalData {
- mat4 xform; //to decal transform
- vec3 inv_extents;
- float albedo_mix;
- vec4 albedo_rect;
- vec4 normal_rect;
- vec4 orm_rect;
- vec4 emission_rect;
- vec4 modulate;
- float emission_energy;
+ highp mat4 xform; //to decal transform
+ highp vec3 inv_extents;
+ mediump float albedo_mix;
+ highp vec4 albedo_rect;
+ highp vec4 normal_rect;
+ highp vec4 orm_rect;
+ highp vec4 emission_rect;
+ highp vec4 modulate;
+ mediump float emission_energy;
uint mask;
- float upper_fade;
- float lower_fade;
- mat3x4 normal_xform;
- vec3 normal;
- float normal_fade;
+ mediump float upper_fade;
+ mediump float lower_fade;
+ mediump mat3x4 normal_xform;
+ mediump vec3 normal;
+ mediump float normal_fade;
};