ITeye博客

yellow的Blog

yellowcxx · 共 3 篇文章

HLSL Shading for 3dsMax 03 - Specular Lighting

**Purpose: ** Create a Shader to Implement the Phong and Blinn-Phong Specular Lighting. **Solution: ** 1.Study of the Phong Specular Lighting from <<Introduction to 3D Game Programming with DirectX 10>> 2.the Blinn Modification to Phong the major different between Phong and Blinn is the H(Half) vec…

2015-04-16 10:58 · Shaders · 评论(0)

HLSL Shading for 3dsMax 02 - Diffuse Lighting

Purpose: Create a Shader to Implement the Lambert's Cosine Law. Solution: 1.Study of the Lambert's Cosine Law from <<Introduction to 3D Game Programming with DirectX 10>> 2.Shader Source float4x4 wvp : WorldViewProjection <string UIWidget="None" ;>; float4x4 w : World <string UIWidget="None";>; flo…

2015-04-05 02:05 · Shaders · 评论(0)

HLSL Shading for 3dsMax 01 - Hello world

Purpose: Create a HLSL Shader that just use a solid ambient color to shading the model in 3dsMax. Solution: 1.Create a teapot in 3dsMax 2.Hit shotcut key 'm' to active Material Editor and choice DirectX Shader 3.Load our HLSL Shader file 4.Assign to teapot as a material 5.Adjust the AmbientColor we…

2015-03-28 15:19 · Shaders · 评论(0)