here is my first ISL code : simple gradient shader
some images and a pigs file for play with it
yellow to white on bootle, bottom to top
horizontal and vertical gradient (change x for y or z in x(posOS()) for gradient orientation)
à bientôt !
happy renderings
simple gradient shader
- arc en ciel
- Posts: 138
- Joined: Tue Apr 12, 2016 2:33 am
simple gradient shader
- Attachments
-
- shaderDegrade.7z
- (2.68 MiB) Downloaded 243 times
Re: simple gradient shader
Hi
And 'noticeable when a user writes the lines of code in a shader. Unfortunately the reference to C4D and Photoshop for multiple shades is embarrassing.
And 'noticeable when a user writes the lines of code in a shader. Unfortunately the reference to C4D and Photoshop for multiple shades is embarrassing.
Mac Mini 2011 - 2,3 GHz Intel Core i5
16 GB 1333 MHz DDR3 - Intel HD Graphics 3000 512 Mb.
Samsung SSD 860 EVO 500GB - MacOS High Sierra 10.13.6
https://www.behance.net/Paolo_Conti
16 GB 1333 MHz DDR3 - Intel HD Graphics 3000 512 Mb.
Samsung SSD 860 EVO 500GB - MacOS High Sierra 10.13.6
https://www.behance.net/Paolo_Conti
- Oscar J
- Posts: 2204
- Joined: Sat Mar 31, 2012 3:47 am
- Location: Gothenburg, Sweden
- 3D Software: Blender
Re: simple gradient shader
Not sure your sentence makes a lot of sense contegufo. A user can choose whether he/she wants to use ISL or not. There's nothing embarrassing with ISL - quite the opposite, Indigo's ISL is a powerful tool that can do things many other renderers can't.
- arc en ciel
- Posts: 138
- Joined: Tue Apr 12, 2016 2:33 am
Re: simple gradient shader
yo,
@contegufo :
what do you mean by reference to multiple shades is embarassing ? are you talking about precision of colors ? precision of position on the mesh ?
have a look to old threads about ISL, that's really interesting, and some materials are incredible, some guys right there are crazy's heavy's math's codemonkey, and ISL is dealing directly with Indigo's heart so it's really powerful.
smoothPulse + smoothPulse = tablecloth
2 opaques bottles have only one smoothPulse on Z
is it possible in ISL to have something like case function ?
thx
@contegufo :
what do you mean by reference to multiple shades is embarassing ? are you talking about precision of colors ? precision of position on the mesh ?
have a look to old threads about ISL, that's really interesting, and some materials are incredible, some guys right there are crazy's heavy's math's codemonkey, and ISL is dealing directly with Indigo's heart so it's really powerful.
smoothPulse + smoothPulse = tablecloth
Code: Select all
lerp(
paramcol1(),
paramcol2(),
smoothPulse(paramlissage_1()/paramFormat(),
paramlissage_2()/paramFormat(),
paramlissage_1()/paramlissage_2(),
paramlissage_1()/paramlissage_2(),
(sin(x(posOS())/paramFormat()))*paramlongueur())
+
smoothPulse(paramlissage_1()/paramFormat(),
paramlissage_2()/paramFormat(),
paramlissage_1()/paramlissage_2(),
paramlissage_1()/paramlissage_2(),
(sin(y(posOS())/paramFormat()))*paramlongueur())
+
smoothPulse(paramlissage_1()/paramFormat(),
paramlissage_2()/paramFormat(),
paramlissage_1()/paramlissage_2(),
paramlissage_1()/paramlissage_2(),
(sin(z(posOS())/paramFormat()))*paramlongueur())
)
is it possible in ISL to have something like case function ?
thx
Who is online
Users browsing this forum: No registered users and 34 guests