Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vertex_program HLSL/MyOcean2VS hlsl
- {
- source MyOcean2HLSL_Cg.vert
- entry_point main
- target vs_1_1
- default_params
- {
- param_named_auto WorldViewProj worldviewproj_matrix
- param_named_auto eyePosition camera_position_object_space
- }
- }
- fragment_program HLSL/Ocean2FS hlsl
- {
- source Ocean2HLSL_Cg.frag
- entry_point main
- target ps_2_0
- }
- material ReverseSurface
- {
- technique
- {
- pass
- {
- ambient 0 0.01 0.777 0.7
- diffuse 0 0.01 0.777 0.7
- //specular 1 1 1 1 20
- //scene_blend alpha_blend
- alpha_rejection greater 128
- depth_write off
- fog_override true exp 0 0.01 0.777 0.01 1 1000
- vertex_program_ref HLSL/MyOcean2VS
- {
- param_named BumpScale float 0.2
- param_named textureScale float2 25 26
- param_named bumpSpeed float2 0.015 0.005
- param_named_auto time time_0_x 100.0
- param_named waveFreq float 0.028
- param_named waveAmp float 10.8
- }
- fragment_program_ref HLSL/Ocean2FS
- {
- param_named deepColor float4 0 0.3 0.5 1.0
- param_named shallowColor float4 0 1 1 1.0
- param_named reflectionColor float4 0.95 1 1 1.0
- param_named reflectionAmount float 1.0
- param_named reflectionBlur float 0.0
- param_named waterAmount float 0.3
- param_named fresnelPower float 5.0
- param_named fresnelBias float 0.328
- param_named hdrMultiplier float 0.471
- }
- texture_unit
- {
- texture waves2.dds
- tex_coord_set 0
- filtering linear linear linear
- //alpha_op_ex source1 src_manual src_current 0.5
- }
- texture_unit
- {
- cubic_texture morning.jpg combinedUVW
- tex_address_mode clamp
- filtering linear linear linear
- tex_coord_set 1
- //alpha_op_ex source1 src_manual src_current 0.5
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement