UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

9 lines (7 loc) 248 B
var twoSidedLightingPS = ` uniform float twoSidedLightingNegScaleFactor; void handleTwoSidedLighting() { dTBN[2] *= gl_FrontFacing ? twoSidedLightingNegScaleFactor : -twoSidedLightingNegScaleFactor; } `; export { twoSidedLightingPS as default };