InVision Posted August 22, 2013 Share Posted August 22, 2013 Does anyone know where I can get moon shader? I'm looking to replace a few images in the vehicle.txd, I'm brand new to this type of replacing, so any code would be absolultely helpful! Link to comment
manawydan Posted August 22, 2013 Share Posted August 22, 2013 example: https://community.multitheftauto.com/in ... ls&id=7620 Link to comment
InVision Posted August 22, 2013 Author Share Posted August 22, 2013 example: https://community.multitheftauto.com/in ... ls&id=7620 engineApplyShaderToWorldTexture ( shaderL, "coronamoon") Coronamoon would be the file I am replacing, right? Link to comment
manawydan Posted August 22, 2013 Share Posted August 22, 2013 wikitextureName: 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. Link to comment
InVision Posted August 22, 2013 Author Share Posted August 22, 2013 (edited) wikitextureName: 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 August 22, 2013 by Guest Link to comment
manawydan Posted August 22, 2013 Share Posted August 22, 2013 any errors? use /debugscript 3 Link to comment
InVision Posted August 22, 2013 Author Share Posted August 22, 2013 any errors? use /debugscript 3 In the logs it give me no errors. Link to comment
xXMADEXx Posted August 22, 2013 Share Posted August 22, 2013 any errors? use /debugscript 3 In the logs it give me no errors. Use /debugscript 3, not the logs.... 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