Jump to content

Moon Shader?


InVision

Recommended Posts

wiki

textureName: The name of the world texture to apply the shader to. Wildcard matching e.g. "ro?ds*" can be used to apply to more than one texture at a time.

I tried the script, but it did not work..

addEventHandler( "onClientResourceStart", resourceRoot, 
    function() 
     local texture = dxCreateTexture ("vehiclepoldecals128a.png") 
    local shaderL = dxCreateShader ( "LuaShader.fx" ) 
dxSetShaderValue ( shaderL, "gTexture", texture ) 
engineApplyShaderToWorldTexture ( shaderL, "vehiclepoldecals128a") 
    end) 

Edited by Guest
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...