Skip to main content

History: CelShading.program

Preview of version: 1

Copy to clipboard
// // The maximum number of lights per-object. Decrease this value if you need some extra performance. // // If you change this, then you must enter 'CelShading.cg' and change the 'NUM_LIGHTS' // definition to match this variable. set $numLights 8 vertex_program CelShadingVP cg { source CelShading.cg entry_point main_vp profiles vs_1_1 arbvp1 default_params { param_named_auto worldViewProj worldviewproj_matrix } } fragment_program CelShadingFP cg { source CelShading.cg entry_point main_fp profiles ps_1_1 arbfp1 compile_arguments MaxLocalParams=128 default_params { param_named_auto eyePosition camera_position_object_space param_named_auto ambientColor surface_ambient_colour param_named_auto diffuseColor surface_diffuse_colour param_named_auto specularColor surface_specular_colour param_named_auto emissiveColor surface_emissive_colour param_named_auto shininess surface_shininess param_named_auto ambientLight ambient_light_colour param_named_auto lightDiffuse light_diffuse_colour_array $numLights param_named_auto lightSpecular light_specular_colour_array $numLights param_named_auto lightPosition light_position_object_space_array $numLights param_named_auto lightAttenuation light_attenuation_array $numLights } } fragment_program CelShadingDecalFP cg { source CelShading.cg entry_point mainDecal_fp profiles ps_1_1 arbfp1 compile_arguments MaxLocalParams=128 default_params { param_named_auto eyePosition camera_position_object_space param_named_auto ambientColor surface_ambient_colour param_named_auto diffuseColor surface_diffuse_colour param_named_auto specularColor surface_specular_colour param_named_auto emissiveColor surface_emissive_colour param_named_auto shininess surface_shininess param_named_auto ambientLight ambient_light_colour param_named_auto lightDiffuse light_diffuse_colour_array $numLights param_named_auto lightSpecular light_specular_colour_array $numLights param_named_auto lightPosition light_position_object_space_array $numLights param_named_auto lightAttenuation light_attenuation_array $numLights } } fragment_program CelShadingDecalSpecFP cg { source CelShading.cg entry_point mainDecalSpec_fp profiles ps_1_1 arbfp1 compile_arguments MaxLocalParams=128 default_params { param_named_auto eyePosition camera_position_object_space param_named_auto ambientColor surface_ambient_colour param_named_auto diffuseColor surface_diffuse_colour param_named_auto specularColor surface_specular_colour param_named_auto emissiveColor surface_emissive_colour param_named_auto shininess surface_shininess param_named_auto ambientLight ambient_light_colour param_named_auto lightDiffuse light_diffuse_colour_array $numLights param_named_auto lightSpecular light_specular_colour_array $numLights param_named_auto lightPosition light_position_object_space_array $numLights param_named_auto lightAttenuation light_attenuation_array $numLights } }

History

Information Version
Sat 21 of Apr, 2012 01:31 GMT-0000 StrakeFengala Changed profiles to ps_2_x, and removed the compile_arguments because they do not on D3D9... 2
Fri 20 of Apr, 2012 15:56 GMT-0000 StrakeFengala 1