Node: Gabor Noise Texture #110802
|
@ -165,7 +165,7 @@ vec3 gabor_sample(GaborParams gp, vec3 cell, int seed, out float phi)
|
|||
float omega_t = ovar * gp.rot_variance - gp.rotation;
|
||||
float sin_omega_t = sin(omega_t);
|
||||
float cos_omega_t = cos(omega_t);
|
||||
/* Reference code uses normalize(gp.direction). */
|
||||
/* Reference code uses length(gp.direction). */
|
||||
return gp.direction * vec3(cos_omega_t, sin_omega_t, 0.0);
|
||||
}
|
||||
else { /* Isotropic. */
|
||||
CharlieJolly marked this conversation as resolved
Outdated
|
||||
|
|
Loading…
Reference in New Issue
If this is simply only passed to
gabor_sample
, why not call it ingabor_sample
directly?