forked from Mirrors/openclonk
47 lines
1015 B
Plaintext
47 lines
1015 B
Plaintext
vertex_program normal_map_vertex glsl
|
|
{
|
|
source normal_map_vertex.glsl
|
|
}
|
|
|
|
fragment_program normal_map_fragment glsl
|
|
{
|
|
source normal_map_fragment.glsl
|
|
}
|
|
|
|
// This material can be derived from in order to use a normal map with a
|
|
// single base texture.
|
|
material NormalMap
|
|
{
|
|
receive_shadows on
|
|
|
|
technique
|
|
{
|
|
pass
|
|
{
|
|
texture_unit base
|
|
{
|
|
}
|
|
|
|
texture_unit normal
|
|
{
|
|
}
|
|
|
|
vertex_program_ref normal_map_vertex
|
|
{
|
|
}
|
|
|
|
fragment_program_ref normal_map_fragment
|
|
{
|
|
param_named_auto oc_Mod2 oc_mod2
|
|
param_named_auto oc_ColorModulation oc_color_modulation
|
|
param_named_auto oc_UseLight oc_use_light
|
|
param_named_auto oc_Light oc_light
|
|
param_named_auto oc_Ambient oc_ambient
|
|
|
|
param_named basemap int 0
|
|
param_named normalmap int 1
|
|
}
|
|
}
|
|
}
|
|
}
|