mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 19:24:32 +02:00
float specular = max(0.0, dot(normalize(gl_LightSource[0].position + vec4(0.0, 0.0, 1.0, 0.0)), normalizedNormal)); to float specular = max(0.0, dot(gl_LightSource[0].position, normalizedNormal)); Calculation for specular value has to be done like in all other shaders with the unmodified unnormalized lightsource position. Otherwise the specular effect will have weird behaviour. |
||
---|---|---|
.. | ||
external | ||
resources | ||
src | ||
ui | ||
CMakeLists.txt | ||
interface.icns | ||
interface_en.ts | ||
InterfaceConfig.h.in | ||
InterfaceVersion.h.in |