Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save smakhtin/2875018 to your computer and use it in GitHub Desktop.
Save smakhtin/2875018 to your computer and use it in GitHub Desktop.
alpha not working
material tv/frame
{
technique
{
pass
{
ambient 0.215686 0.215686 0.215686
diffuse 0.215686 0.215686 0.215686 1
specular 0.172549 0.172549 0.172549 70
emissive 0 0 0
texture_unit
{
texture EnvmapPlan.jpg
colour_op_ex blend_manual src_texture src_current 0.3
env_map planar
}
}
}
}
material tv/video
{
technique
{
pass 01
{
lighting off
scene_blend add
depth_write off
texture_unit
{
tex_address_mode border
tex_border_colour 0 0 0 0
scale 1.05 2.05
scroll 0 0.25
}
}
pass 02
{
lighting off
scene_blend modulate
depth_write off
texture_unit
{
tex_address_mode border
tex_border_colour 0 0 0 0
scale 1.05 2.05
scroll 0 -0.25
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment