diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-05-07 16:18:25 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-07 16:18:25 -0300 |
commit | 3051bb8a81858b3cbb26f760e572a44a8668c155 (patch) | |
tree | 615fe257952e8fca3a89e0040b094e2498b74586 /scene/resources/material.h | |
parent | 6d46f73ec3e3eadaf25927633bdc0aa1eaca93ab (diff) | |
parent | 9c307d4b6c4bf4dc70835e7539158db5922b0d2c (diff) |
Merge pull request #17845 from JFonS/disable_spatial_shadows
Added flag on SpatialMaterial to disable shadows
Diffstat (limited to 'scene/resources/material.h')
-rw-r--r-- | scene/resources/material.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/resources/material.h b/scene/resources/material.h index 2c297cda41..ce733bfb8d 100644 --- a/scene/resources/material.h +++ b/scene/resources/material.h @@ -188,6 +188,7 @@ public: FLAG_EMISSION_ON_UV2, FLAG_USE_ALPHA_SCISSOR, FLAG_ALBEDO_TEXTURE_FORCE_SRGB, + FLAG_DONT_RECEIVE_SHADOWS, FLAG_MAX }; @@ -236,7 +237,7 @@ private: uint64_t blend_mode : 2; uint64_t depth_draw_mode : 2; uint64_t cull_mode : 2; - uint64_t flags : 14; + uint64_t flags : 15; uint64_t detail_blend_mode : 2; uint64_t diffuse_mode : 3; uint64_t specular_mode : 2; |