diff options
author | Antti Määttä <antti.maatta@qt.io> | 2019-12-12 14:40:21 +0200 |
---|---|---|
committer | Antti Määttä <antti.maatta@qt.io> | 2019-12-27 11:21:24 +0200 |
commit | c4ed0d6acfc2cb444a5260cbd509a427208f7ac5 (patch) | |
tree | 6ceba81778153e8a28f0fa4ef918c2498cb40b51 /examples | |
parent | 71190e5a059eba4c911abcfdd599c2a98d674ed0 (diff) |
Optimize and cleanup shaders
Change-Id: Ia27680e20f73ffe645d5a336fad7024e67a8389b
Reviewed-by: Janne Kangas <janne.kangas@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/studio3d/dynamicelement/presentation/materials/copper.shader | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/studio3d/dynamicelement/presentation/materials/copper.shader b/examples/studio3d/dynamicelement/presentation/materials/copper.shader index cf9e1ad..a2ebe8b 100644 --- a/examples/studio3d/dynamicelement/presentation/materials/copper.shader +++ b/examples/studio3d/dynamicelement/presentation/materials/copper.shader @@ -93,7 +93,7 @@ void computeFrontLayerEnvironment( in vec3 normal, in vec3 viewDir, float aoFact #else layers[0].base += tmpShadowTerm * vec4( 0.0, 0.0, 0.0, 1.0 ); - layers[0].layer += tmpShadowTerm * sampleGlossyAniso( layers[0].tanFrame, viewDir, roughness, roughness ); + layers[0].layer += tmpShadowTerm * sampleGlossy( layers[0].tanFrame, viewDir, roughness); #endif } |