Skip to content

Commit d33c69b

Browse files
committed
Updated the shaders
1 parent b8f1db8 commit d33c69b

3 files changed

Lines changed: 0 additions & 5 deletions

File tree

src/renderer/webgl/shaders/Mesh-frag.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@ module.exports = [
4747
'',
4848
' float fogFactor = smoothstep(uFogNear, uFogFar, depth);',
4949
'',
50-
' // gl_FragColor = vec4(result, color.a);',
51-
'',
5250
' gl_FragColor.rgb = mix(result.rgb, uFogColor, fogFactor);',
53-
'',
5451
' gl_FragColor.a = color.a;',
5552
'}',
5653
''

src/renderer/webgl/shaders/Single-frag.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ module.exports = [
2121
' {',
2222
' // Solid color + texture alpha',
2323
' color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);',
24-
' // color.a = texture.a * texel.a;',
2524
' }',
2625
'',
2726
' gl_FragColor = color;',

src/renderer/webgl/shaders/src/Mesh.frag

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,5 @@ void main (void)
4747
float fogFactor = smoothstep(uFogNear, uFogFar, depth);
4848

4949
gl_FragColor.rgb = mix(result.rgb, uFogColor, fogFactor);
50-
5150
gl_FragColor.a = color.a;
5251
}

0 commit comments

Comments
 (0)