Help & Guidance > Presets & Markings Tutorials

Shading Script in your preset.

(1/2) > >>

SenseiRei:
Want Shading in your preset? Its real simple and looks FANTASTIC!
 It didn't take too long to research and test out, but here is the script i GOT FOR YOU!


--- Code: ---material preset_6_bodyMatL
{
technique
{
pass
    {
     shading phong

                        ambient 0.6 0.6 0.6 1
specular 0 0 0 0 128
texture_unit
{
texture preset_6body.png
}
}
}
}
material preset_6_bodyMatR
{
technique
{
pass
{
shading phong

                        ambient 0.6 0.6 0.6 1
specular 0 0 0 0 128
texture_unit
{
texture preset_6body.png
}
}
}
}
material preset_6_headMatL
{
technique
{
pass
{
shading phong

                        ambient 0.6 0.6 0.6 1
specular 0 0 0 0 128
texture_unit
{
texture preset_6head.png
}
}
}
}
material preset_6_headMatR
{
technique
{
pass
{
shading phong

                        ambient 0.6 0.6 0.6 1
specular 0 0 0 0 128
texture_unit
{
texture preset_6head.png
}
}
}
}
material preset_6_eyeMatL
{
technique
{
pass
{
shading phong

                        ambient 0.6 0.6 0.6 1
specular 0 0 0 0 128
cull_hardware none
cull_software none
texture_unit
{
texture preset_6eye.png
}
}
}
}
material preset_6_eyeMatR
{
technique
{
pass
{
shading phong

                        ambient 0.6 0.6 0.6 1
specular 0 0 0 0 128
cull_hardware none
cull_software none
texture_unit
{
texture preset_6eye.png
}
}
}
}
material preset_6_tailMat
{
technique
{
pass
{
shading phong

                        ambient 0.6 0.6 0.6 1
specular 0 0 0 0 128
texture_unit
{
texture preset_6tail.png
}
}
}
}
material preset_6_maneMat
{
technique
{
pass
{
shading phong

                        ambient 0.6 0.6 0.6 1
specular 0 0 0 0 128
lighting on
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_6mane.png
}
}
}
}
--- End code ---

So basically all you need to add is this to every line

--- Code: ---      shading phong

                        ambient 0.6 0.6 0.6 1
specular 0 0 0 0 128
--- End code ---
Between the Pass{ and Texture_Unit{. And at the line for MANE, be sure to turn the LIGHTING ON!

Your results will come out like these!



REMINDER! DONT MIX THESE WITH OTHER SCRIPTS THAT REQUIRE PART OF YOUR MAIN TEXTURE TO BE CUT OUT! IT WILL JUST TURN BLACK WITH THE SHADER CODE!
Please comment/share your results! i would love to see your beautiful presets all shaded and fancy! ^_^

SenseiRei:
[Deleted]

Tigg:
Can you compare these presets with and without shading?
Its kinda hard to see what it actually does o.o

WolfQueen:
Tried it with my preset
Will most likely use this in her revamp. Thank you for sharing this!
Comparison

It gives the model a deep blue glow at nighttime

SenseiRei:

--- Quote from: Tigg on May 21, 2018, 08:21:25 pm ---Can you compare these presets with and without shading?
Its kinda hard to see what it actually does o.o

--- End quote ---

Fixed

Navigation

[0] Message Index

[#] Next page

Go to full version