{"version":3,"file":"ambient.frag.mjs","sources":["../../../src/lights/ambientLight/ambient.frag.ts"],"sourcesContent":["import { commonUniforms, computeVertexPosition, loadNormals } from '../shared';\n\nexport const ambientFrag = `precision highp float;\n\n${commonUniforms}\n\nvoid main(void)\n{\n${computeVertexPosition}\n${loadNormals}\n    // simplified lambert shading that makes assumptions for ambient color\n    vec3 diffuse = uColor.rgb * uBrightness;\n    vec4 diffuseColor = texture2D(uSampler, texCoord);\n    vec3 finalColor = diffuseColor.rgb * diffuse;\n\n    gl_FragColor = vec4(finalColor, diffuseColor.a);\n}\n`;\n"],"names":[],"mappings":";;AAEO,MAAM,WAAc,GAAA,CAAA;AAAA;AAAA,EAEzB,cAAA,CAAA;AAAA;AAAA;AAAA;AAAA,EAIA,qBAAA,CAAA;AAAA,EACA,WAAA,CAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;"}