Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-08-03 19:53:36 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-08-08 22:26:49 +0300
commit82352565b79d1abb3b6f513bf186c1b3d80e8f0c (patch)
treeaec2daede19ce964e8dc66db76f36dbb4aac5e48 /source/blender/gpu/shaders
parent05c0992c9b8fd852855b908fcd6333678360c307 (diff)
Eevee: Remove some of the non-necessary uniforms
The remaining ones are from the attributes linear/srgb switches and from nodes that should be pruned before running their _gpu function.
Diffstat (limited to 'source/blender/gpu/shaders')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_material.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl
index 064ee42907e..808d2f73659 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -1102,7 +1102,7 @@ void node_bsdf_anisotropic(
vec4 color, float roughness, float anisotropy, float rotation, vec3 N, vec3 T,
out Closure result)
{
- node_bsdf_diffuse(color, 0.0, N, result);
+ node_bsdf_glossy(color, roughness, N, -1, result);
}
void node_bsdf_glass(vec4 color, float roughness, float ior, vec3 N, float ssr_id, out Closure result)