Merge pull request #421 from lukaspj/fix/opengl-terrain-normal

OpenGL: Access viewtangent "DX" style for gbNormal in terrain textures
This commit is contained in:
Brian Roberts 2020-12-26 05:50:27 -06:00 committed by GitHub
commit 8b8f725fae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -610,7 +610,7 @@ void TerrainDetailMapFeatGLSL::processPix( Vector<ShaderComponent*> &component
{
Var *viewToTangent = getInViewToTangent(componentList);
meta->addStatement(new GenOp(" @ = lerp( @, @[2], min( @, @.w ) );\r\n",
meta->addStatement(new GenOp(" @ = lerp( @, tGetMatrix3Row(@, 2), min( @, @.w ) );\r\n",
gbNormal, gbNormal, viewToTangent, detailBlend, inDet));
}