Notifications
Clear all
[Closed] std mat with nested maps
Jan 02, 2015 5:17 pm
2 Replies
Jan 02, 2015 5:17 pm
(
-- Create the Checker texture
checkerTexture = checker()
-- Create the RGB Tint map
RGBMap = rgbTint()
-- Assign the Checker texture to the RGB Tint map
RGBMap.map1 = checkerTexture
-- Create a Standard material and assign the RGB Tint map to the diffuse channel
theMaterial = standard diffusemap:RGBMap
-- Set the Slot 1 of the Material Editor to this material.
-- Not really needed but useful for testing
meditmaterials[1] = theMaterial
)
In one line it would look like this:
meditmaterials[1] = standard diffusemap:(rgbTint map1:(checker()))
…but it would be much harder to setup individual textures parameters, so I would not recomend using it.