ISL : GPU mode (Indigo 4.2.23)
Posted: Wed Dec 12, 2018 1:11 pm
in GPU mode
trying to blend two diffuse materials, a yellow and a blue, using ISL
here is the result
![Image](http://reelmotion.free.fr/test_meanCurvature_GPU/normalWS_curvature_GPU.jpg)
- -
but if I only change normalWS by posOS, there is no blend
![Image](http://reelmotion.free.fr/test_meanCurvature_GPU/posOS_curvature_GPU.jpg)
- -
- -
link NormalWS material
link posOS material
trying to blend two diffuse materials, a yellow and a blue, using ISL
Code: Select all
def eval() real :
let
c = clamp(meanCurvature(), 0, 1000)
z = normalWS().y * 3
z2 = z * z
in
clamp(if (z > 0, z, z2) *
noise01(normalWS())+c,0.0,1.0)
![Image](http://reelmotion.free.fr/test_meanCurvature_GPU/normalWS_curvature_GPU.jpg)
- -
but if I only change normalWS by posOS, there is no blend
![Shocked :shock:](./images/smilies/icon_eek.gif)
![Image](http://reelmotion.free.fr/test_meanCurvature_GPU/posOS_curvature_GPU.jpg)
- -
- -
link NormalWS material
link posOS material