You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(ior==1.) return; // Adding this line may have better performance, but more importantly, it can avoid display errors at the very edges of the model when IOR is equal to 1.
118
131
@@ -160,6 +173,10 @@ var SSRrShader = {
160
173
float totalStep=max(abs(xLen),abs(yLen));
161
174
float xSpan=xLen/totalStep;
162
175
float ySpan=yLen/totalStep;
176
+
#ifdef FILL_HOLE
177
+
bool isRough=false;
178
+
vec2 uvRough;
179
+
#endif
163
180
for(float i=0.;i<float(MAX_STEP);i++){
164
181
if(i>=totalStep) break;
165
182
vec2 xy=vec2(d0.x+i*xSpan,d0.y+i*ySpan);
@@ -182,24 +199,31 @@ var SSRrShader = {
182
199
float sD=surfDist;
183
200
#endif
184
201
202
+
#ifdef FILL_HOLE // TODO: May can improve performance by check if INFINITE_THICK too.
0 commit comments