mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 16:10:40 +02:00
Ready for release
This commit is contained in:
parent
7be736d6de
commit
07a9dd3404
1 changed files with 15 additions and 15 deletions
|
@ -33,7 +33,7 @@ vec3 bestFitNormal(vec3 normal) {
|
|||
texcoord = (texcoord.x < texcoord.y ? texcoord.yx : texcoord.xy);
|
||||
texcoord.y /= texcoord.x;
|
||||
vec3 cN = normal / maxNAbs;
|
||||
float fittingScale = texture2D(normalFittingMap, texcoord).a;
|
||||
float fittingScale = texture(normalFittingMap, texcoord).a;
|
||||
cN *= fittingScale;
|
||||
return (cN * 0.5 + 0.5);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue