Gradient in isl.. how to?

General questions about Indigo, the scene format, rendering etc...
Post Reply
2 posts • Page 1 of 1
neo0.
Posts: 1784
Joined: Thu Feb 28, 2008 7:11 am
Location: the US of A

Gradient in isl.. how to?

Post by neo0. » Wed Jan 21, 2015 3:52 pm

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!

User avatar
CTZn
Posts: 7240
Joined: Thu Nov 16, 2006 4:34 pm
Location: Paris, France

Re: Gradient in isl.. how to?

Post by CTZn » Thu Jan 22, 2015 7:24 am

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.
obsolete asset

Post Reply
2 posts • Page 1 of 1