|
|
|
|
|
|
{ |
|
|
|
bsdfData.diffuseColor = surfaceData.baseColor; |
|
|
|
bsdfData.fresnel0 = 0.028; // TODO take from subsurfaceProfile |
|
|
|
bsdfData.subsurfaceProfile = surfaceData.subsurfaceProfile; |
|
|
|
bsdfData.subsurfaceProfile = surfaceData.subsurfaceProfile; |
|
|
|
bsdfData.enableTransmittance = (1 << bsdfData.subsurfaceProfile) & _TransmittanceFlags; |
|
|
|
if (bsdfData.enableTransmittance) |
|
|
|
{ |
|
|
|
|
|
|
{ |
|
|
|
bsdfData.diffuseColor = baseColor; |
|
|
|
bsdfData.fresnel0 = 0.028; // TODO take from subsurfaceProfile |
|
|
|
bsdfData.subsurfaceProfile = inGBuffer2.a * 8.0; |
|
|
|
bsdfData.subsurfaceProfile = inGBuffer2.a * 8.0; |
|
|
|
bsdfData.enableTransmittance = (1 << bsdfData.subsurfaceProfile) & _TransmittanceFlags; |
|
|
|
if (bsdfData.enableTransmittance) |
|
|
|
{ |
|
|
|