Talk:DirectX:Direct3D:Tutorials:VBNET:DX9:Basic HLSL Shaders

From GPWiki

Files:GUITutorial_warn.gif The Game Programming Wiki has moved! Files:GUITutorial_warn.gif

The wiki is now hosted by GameDev.NET at wiki.gamedev.net. All gpwiki.org content has been moved to the new server.

However, the GPWiki forums are still active! Come say hello.

Example does not work with current SDK. --Mashiharu 09:45, 4 Apr 2005 (EDT)

Easily Fixable

Replace

Effect = Direct3D.Effect.FromFile(GFX, "Simple.fx", Nothing, Direct3D.ShaderFlags.None, Nothing)

With

Effect = Direct3D.Effect.FromFile(GFX, "Simple.fx", Nothing, Nothing, Direct3D.ShaderFlags.None, Nothing)

and

Effect.Pass(idx)

With

Effect.BeginPass(idx)

Effect.EndPass()