Dim newZStencil As Surface = Device.GetBackBuffer(0, 0, BackBufferType.Mono)
Do While brun = True
Device.SetRenderTarget(0, newZStencil)
Device.Clear(ClearFlags.Target Or ClearFlags.ZBuffer, Color.Black, 1.0F, 0)
Device.BeginScene()
' First object
Device.Transform.World = Matrix.Translation(New Vector3(0,0,0))
For i = 0 To matObject1.Length - 1
'Device.Material = materials3(i)
Device.SetTexture(0, texObject1(i))
objObject1.DrawSubset(i)
Next
' Second object
Device.Transform.World = Matrix.Translation(New Vector3(0,0,0))
For i = 0 To matObject2.Length - 1
'Device.Material = materials3(i)
Device.SetTexture(0, texObject2(i))
objObject2.DrawSubset(i)
Next
Device.EndScene()
Device.Present()
Application.DoEvents()
Loop
And i need add for this 2 object effect blur from .FX file (Shader).
Please help me, i dont now where and what i must add for this code.
VERY VERY thanks for help.
[Edited by - kultys on September 4, 2008 5:43:44 AM]
🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
DirectX (VB.NET+shader blur)
I am beginner.
I have my code which displays objects:
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement