Changeset 492 for trunk/x42view.net/Gui/ModelWindow.Preview.Shaded.cs
- Timestamp:
- 12/10/07 12:34:21 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/x42view.net/Gui/ModelWindow.Preview.Shaded.cs
r489 r492 216 216 } 217 217 218 EffectHandle eh InvBumpDepth;218 EffectHandle ehBumpUnpack; 219 219 220 220 EffectHandle ehAmbient; … … 268 268 shaderLights = ShaderLight.GetLights( shadedEffect ); 269 269 270 eh InvBumpDepth = shadedEffect.GetParameterBySemantic( null, "INVBUMPDEPTH" );270 ehBumpUnpack = shadedEffect.GetParameterBySemantic( null, "BUMPUNPACK" ); 271 271 272 272 defaultDiffuse = TextureLoader.FromFile( device, Path.Combine( Application.StartupPath, "Media/DefaultDiffuse.bmp" ), … … 291 291 private void UnloadSurfaceShaders() 292 292 { 293 eh InvBumpDepth= null;293 ehBumpUnpack = null; 294 294 shaderLights = null; 295 295 ehAmbient = null; … … 313 313 private void SetupLightingRig() 314 314 { 315 float invBumpDepth = (1 - pnPreviewOpts.BumpDepth); 316 shadedEffect.SetValue( ehInvBumpDepth, new Vector4( invBumpDepth, 0, 0, 1 ) ); 315 shadedEffect.SetValue( ehBumpUnpack, pnPreviewOpts.BumpUnpack ); 317 316 318 317 Vector3 amb = pnPreviewOpts.AmbientLightColor;
