Author Topic: Shading Script in your preset.  (Read 8991 times)

Offline SenseiRei

  • Dedicated Supporter
  • ***
  • Posts: 476
  • Country: us
  • Floof-O-Meter: 25
  • ❤️ Plz Nuzzle me! I'm super Cuddly ❤️
    • royaldog12
    • View Profile
Shading Script in your preset.
« on: May 05, 2018, 05:22:29 pm »
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: [Select]
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
}
}
}
}

So basically all you need to add is this to every line
Code: [Select]
     shading phong

                        ambient 0.6 0.6 0.6 1
specular 0 0 0 0 128
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! ^_^
« Last Edit: May 22, 2018, 03:15:32 am by SenseiRei »

Offline SenseiRei

  • Dedicated Supporter
  • ***
  • Posts: 476
  • Country: us
  • Floof-O-Meter: 25
  • ❤️ Plz Nuzzle me! I'm super Cuddly ❤️
    • royaldog12
    • View Profile
Re: Shading Script in your preset.
« Reply #1 on: May 21, 2018, 05:43:12 pm »
[Deleted]
« Last Edit: May 22, 2018, 03:03:16 am by SenseiRei »

Offline Tigg

  • Immortal Legend
  • *****
  • Posts: I am a geek!!
  • Country: at
  • Floof-O-Meter: 0
  • Your right hand on 3D-Meshes
    • t-i-g-g
    • channel/UCKuFJTwBJf94Tq07oVBNMrA
    • 76561198118876593
    • TiggDarkfury
    • View Profile
    • Isla Thanatos Gameserver
Re: Shading Script in your preset.
« Reply #2 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

Offline WolfQueen

  • Onion Queen
  • Elder Grey Pelt
  • ****
  • Posts: 3,421
  • Country: us
  • Floof-O-Meter: 117
  • feralheart's malignant tumor
    • jengajangle
    • jenqatower
    • jengatower
    • jengatowerr
    • View Profile
Re: Shading Script in your preset.
« Reply #3 on: May 22, 2018, 02:49:02 am »
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


Offline SenseiRei

  • Dedicated Supporter
  • ***
  • Posts: 476
  • Country: us
  • Floof-O-Meter: 25
  • ❤️ Plz Nuzzle me! I'm super Cuddly ❤️
    • royaldog12
    • View Profile
Re: Shading Script in your preset.
« Reply #4 on: May 22, 2018, 03:16:26 am »
Can you compare these presets with and without shading?
Its kinda hard to see what it actually does o.o

Fixed

Offline SenseiRei

  • Dedicated Supporter
  • ***
  • Posts: 476
  • Country: us
  • Floof-O-Meter: 25
  • ❤️ Plz Nuzzle me! I'm super Cuddly ❤️
    • royaldog12
    • View Profile
Re: Shading Script in your preset.
« Reply #5 on: May 22, 2018, 03:16:42 am »
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

Wonderful Job!!!

Offline Centuries.

  • Forum Newcomer
  • *
  • Posts: 1
  • Country: co
  • Floof-O-Meter: 0
  • Lovely floof~
    • RelaxedDoggo
    • corgi smoll butts
    • View Profile
Re: Shading Script in your preset.
« Reply #6 on: July 28, 2018, 02:13:05 pm »
Seems fantastic to use! Ill try it out c:
''Ingame im BlindCanis | preset maker