We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca0a9f4 commit 49dfa9fCopy full SHA for 49dfa9f
jme3-terrain/src/main/resources/Common/MatDefs/Terrain/Modular/PBRTerrainUtils.glsllib
@@ -213,7 +213,7 @@
213
214
//blend layer function. This mixes each layer's pbr vars over top of the current surface values based on the layer's blendValue
215
void PBRTerrainUtils_blendPBRTerrainLayer(inout PBRSurface surface, inout PBRTerrainTextureLayer layer){
216
- layer.ao = clamp(layer.metallic, 0.0, 1.0);
+ layer.ao = clamp(layer.ao, 0.0, 1.0);
217
218
surface.albedo = mix(surface.albedo, layer.albedo.rgb, layer.blendValue);
219
surface.normal = normalize(mix(surface.normal.rgb, layer.normal, layer.blendValue));
0 commit comments