Jump to content

[HELP] DrawImage with shader quality fix


Vuzimir

Recommended Posts

Hi guys, i have this code: 

myShader4 = dxCreateShader( "texRep4.fx" )
dxSetShaderTransform ( myShader4, -30, 0, -2.7, 0, 0, 0, false, 0, 0, false)

dxDrawImage((15)*xFactor, sy-(25)*yFactor, (142.5)*xFactor, (10)*yFactor, myShader4,0, 0, 0, bg)

and my quality is not good when i change Z coordinate in Shader Transform, so how can i fix it? this is my current quality: https://prnt.sc/iw2vxu

Link to comment
  • Moderators

@Vuzimir

This is what I get for trying to help you? Really? REALLY? Don't get paranoid, I have already more than enough posts and I am replying to YOU in MY FREE TIME.

 


 

You are not even editing the z offset. It is set to 0. So then why would yours look so :~ty? The only thing I can think of, is either your shader file or your GPU. But if you have edited it, then it is really stupid to post code where it is not edited.

dxSetShaderTransform ( myShader4, -30, 0, -2.7, 0, 0, 0, false, 0, 0, false)

bool dxSetShaderTransform ( element theShader, float rotationX, float rotationY, float rotationZ, [ float rotationCenterOffsetX = 0, float rotationCenterOffsetY = 0, float rotationCenterOffsetZ = 0, bool bRotationCenterOffsetOriginIsScreen = false, float perspectiveCenterOffsetX = 0, float perspectiveCenterOffsetY = 0, bool bPerspectiveCenterOffsetOriginIsScreen = false ] )

  • Like 2
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...