ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. dxSetShaderTransform

Function

dxSetShaderTransform

ClientShadersIdentical to MTA:SA

Rotates a shader image drawn with dxDrawImage in 3D. Not supported - always returns false.

Syntax

bool dxSetShaderTransform(element theShader [, float ...])

Arguments

theShaderelement
The shader.
...float, optional
Rotation parameters (ignored).

Returns

Always false.

Example

local shader = dxCreateShader("texture gTexture; technique t { pass P0 { Texture[0] = gTexture; } }")
if not dxSetShaderTransform(shader, 30, 0, 0) then outputDebugString("Brak transformacji") end

See also