|
|
|
|
|
|
bsdfData.specularOcclusion = inGBuffer0.a; |
|
|
|
|
|
|
|
#ifdef USE_NORMAL_TETRAHEDRON_ENCODING |
|
|
|
uint faceIndex; |
|
|
|
int faceIndex; |
|
|
|
uint octNormalSign; |
|
|
|
int octNormalSign; |
|
|
|
UnpackFloatInt10bit(inGBuffer1.b, 4.0, bsdfData.perceptualRoughness, octNormalSign); |
|
|
|
inGBuffer1.r *= (octNormalSign & 1) ? 1.0 : -1.0; |
|
|
|
inGBuffer1.g *= (octNormalSign & 2) ? 1.0 : -1.0; |
|
|
|