Skip to content

Instantly share code, notes, and snippets.

@smakhtin
Created June 15, 2012 12:33
Show Gist options
  • Save smakhtin/2936240 to your computer and use it in GitHub Desktop.
Save smakhtin/2936240 to your computer and use it in GitHub Desktop.
Alpha Keying Material
material plan/lambert1
{
technique
{
pass
{
scene_blend alpha_blend
vertex_program_ref Deferred_vs
{
}
fragment_program_ref Deferred_ps
{
}
texture_unit
{
}
}
}
}
vertex_program Deferred_vs hlsl
{
source alphaKey_vs.hlsl
target vs_3_0
entry_point main
default_params
{
//param_named_auto worldView worldview_matrix
param_named_auto worldViewProj worldviewproj_matrix
}
}
fragment_program Deferred_ps hlsl
{
source alphaKey_ps.hlsl
target ps_3_0
entry_point main
default_params
{
//param_named specularity float 0.0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment