Skip to content

Commit

Permalink
fix: refraction mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hhhhkrx committed Dec 27, 2024
1 parent 02ae05e commit a493e26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ SurfaceData getSurfaceData(Varyings v, vec2 aoUV, bool isFrontFacing){
surfaceData.absorptionCoefficient = -log(material_AttenuationColor + HALF_EPS) / max(HALF_EPS, material_AttenuationDistance);

#ifdef MATERIAL_HAS_THICKNESS
#if REFRACTION_MODE == THIN
#if REFRACTION_MODE == 2
//https://zh.wikipedia.org/wiki/%E8%96%84%E8%86%9C%E5%85%89%E5%AD%A6
surfaceData.thickness = 0.005;
#else
Expand Down

0 comments on commit a493e26

Please sign in to comment.