simple gradient shader

General discussion about Indigo Materials - material requests, material developement, feedback, etc..
Post Reply
4 posts • Page 1 of 1
User avatar
arc en ciel
Posts: 138
Joined: Tue Apr 12, 2016 2:33 am

simple gradient shader

Post by arc en ciel » Fri Jun 17, 2016 2:19 pm

here is my first ISL code : simple gradient shader

Image
some images and a pigs file for play with it

yellow to white on bootle, bottom to top
Image

horizontal and vertical gradient (change x for y or z in x(posOS()) for gradient orientation)
Image

à bientôt !
happy renderings
Attachments
deg2e_15m_738spp_866ksps_biMLT.jpg
shaderDegrade_696spp.jpg
shaderDegrade.7z
(2.68 MiB) Downloaded 119 times

User avatar
contegufo
Posts: 522
Joined: Tue Aug 11, 2015 8:41 am
Location: Lucca ITALY

Re: simple gradient shader

Post by contegufo » Sat Jun 18, 2016 5:47 am

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

User avatar
Oscar J
1st Place Winner
Posts: 2203
Joined: Sat Mar 31, 2012 3:47 am
Location: Gothenburg, Sweden
3D Software: Blender

Re: simple gradient shader

Post by Oscar J » Sat Jun 18, 2016 7:23 am

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.

User avatar
arc en ciel
Posts: 138
Joined: Tue Apr 12, 2016 2:33 am

Re: simple gradient shader

Post by arc en ciel » Sun Jun 19, 2016 1:40 pm

yo,
@contegufo :
:D 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 8)

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())
	)
2 opaques bottles have only one smoothPulse on Z

is it possible in ISL to have something like case function ?

thx
Attachments
damierISL.jpg

Post Reply
4 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest