Page 1 of 1

ISL : GPU mode (Indigo 4.2.23)

Posted: Wed Dec 12, 2018 1:11 pm
by arc en ciel
in GPU mode
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)
here is the result
Image

- -

but if I only change normalWS by posOS, there is no blend :shock:
Image
- -
- -
link NormalWS material
link posOS material

Re: ISL : GPU mode (Indigo 4.2.23)

Posted: Thu Dec 13, 2018 3:20 am
by OnoSendai
meanCurvature() is one of the few ISL features still not working on GPU!

Re: ISL : GPU mode (Indigo 4.2.23)

Posted: Tue Sep 29, 2020 8:55 pm
by pixie
arc en ciel wrote:
Wed Dec 12, 2018 1:11 pm
in GPU mode
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)
here is the result
Image

- -

but if I only change normalWS by posOS, there is no blend :shock:
Image
- -
- -
link NormalWS material
link posOS material
It now works! :)