Node: Gabor Noise Texture #110802

Open
Charlie Jolly wants to merge 68 commits from CharlieJolly/blender:gabor into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 290e3bd066 - Show all commits

View File

@ -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

If this is simply only passed to gabor_sample, why not call it in gabor_sample directly?

If this is simply only passed to `gabor_sample`, why not call it in `gabor_sample` directly?