Keilbritschn Posted April 21, 2014 Share Posted April 21, 2014 Hey Guys, i have a little question. How can i use the Tessellation-Shader with a dxDrawText? I've changed the code, to test it: Settings = {} Settings.var = {} local scrX,scrY = guiGetScreenSize() addEventHandler( "onClientResourceStart", resourceRoot, function() flagShader = dxCreateShader("flag.fx") flagTexture = dxCreateTexture("flag-pic.jpg") dxSetShaderValue( flagShader, "sFlagTexture", flagTexture ) end ) addEventHandler( "onClientRender", root, function() dxSetShaderTessellation( flagShader, 16, 1 ) dxSetShaderTransform( flagShader ,20, 10, 10 ,0, 0, 0 ,true ,0, 0 ,true ) dxDrawImage( 50, 59, 519, 340, flagShader, 0, 0, 0, tocolor(255,255,255,255) ) end ) Well, the question is, how can i make a dxCreateTexture with the dxDrawText Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now