Jump to content

[HELP] RenderTarget inside shader


Vuzimir

Recommended Posts

Hi guys, im trying to make a 3d radar something like this: http://prntscr.com/iw1z1v

So what i managed to do is this: http://prntscr.com/iw1z82

so i have this code: 

rt = dxCreateRenderTarget(290, 175, true)
--shader
myShader = dxCreateShader( "texRep.fx" )
myTexture = dxCreateTexture( "gtasa.png" )
dxSetShaderValue( myShader, "gTexture", myTexture )
dxSetShaderTransform ( myShader, -30, 0, 0, 1, 0, 0, false, 0, 0, false)

--drawing map
dxDrawImage((10+5)*xFactor, sy-((200+5))*yFactor, (300-10)*xFactor, (175)*yFactor, myShader, 0, 0, 0, tocolor(255, 255, 255, 150))

So i have that RenderTarget so how can i include it in shader so i will get map in  this square from RenderTarget:  http://prntscr.com/iw1zv5  but with my 3d effect from picture above:

Edited by Vuzimir
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...