Page 1 of 1

Gradient in isl.. how to?

Posted: Wed Jan 21, 2015 3:52 pm
by neo0.
Hey, im trying to create an emitting material that uses a gradient. Problem is that im completely clueles as to isl. So how would i go about doing this? any help would be greatly appreciated! thanks!

Re: Gradient in isl.. how to?

Posted: Thu Jan 22, 2015 7:24 am
by CTZn
emission is a coloured shader aka vec3

def eval(vec3 pos) vec3:
let intensity value = 1.0

in
vec3(
texi() * intensityValue
)

try texj() instead to swap directions.