Merge pull request #6 from baskanov/vulkan-fix-gray-textures

rtx: presumably fix gray textures
This commit is contained in:
Ivan Avdeev 2021-05-17 09:03:29 -07:00 committed by GitHub
commit edb40ba862
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -491,7 +491,7 @@ void main() {
// C += kc * vec3(hash(float(kusok_index)-102.3), hash(float(kusok_index)+15.43), hash(float(kusok_index)+34.));//kusok.emissive.rgb;
//}
kc *= .9;
kc *= .9 * baseColor;
//const float rough = .4;
const float rough = .3;// * hash(.01 * dot(floor((inverse(mat4(transform)) * vec4(pos, 1.))/10.).xyz, vec3(1.)));
O = pos;