mirror of https://github.com/bjornbytes/lovr.git
Use base diffuse color from materials in Standard shader
This commit is contained in:
parent
239a9514ea
commit
d391a4750f
|
@ -177,7 +177,7 @@ const char* lovrStandardFragmentShader = ""
|
|||
""
|
||||
"vec4 color(vec4 graphicsColor, sampler2D image, vec2 uv) { \n"
|
||||
" vec3 normal = vTangentMatrix * (texture(lovrNormalTexture, uv).rgb * 2. - 1.); \n"
|
||||
" vec3 baseColor = texture(lovrDiffuseTexture, uv).rgb; \n"
|
||||
" vec3 baseColor = texture(lovrDiffuseTexture, uv).rgb * lovrDiffuseColor.rgb; \n"
|
||||
" vec3 emissive = texture(lovrEmissiveTexture, uv).rgb * lovrEmissiveColor.rgb; \n"
|
||||
" float occlusion = texture(lovrOcclusionTexture, uv).r; \n"
|
||||
" float metalness = texture(lovrMetalnessTexture, uv).b * lovrMetalness; \n"
|
||||
|
|
Loading…
Reference in New Issue