local function removeShadow(vehicle)
local shader = dxCreateShader("files/replace.fx", 0, 0, false, "vehicle")
local texture = dxCreateTexture("files/remove.png")
dxSetShaderValue(shader, "gTexture", texture)
engineApplyShaderToWorldTexture(shader, "shad_car", vehicle)
end
and
local function removeShadow(vehicle)
local shader = dxCreateShader("files/replace.fx", 0, 0, false)
local texture = dxCreateTexture("files/remove.png")
dxSetShaderValue(shader, "gTexture", texture)
engineApplyShaderToWorldTexture(shader, "shad_car", localPlayer)
end
Neither worked, I want to remove the shadow of a specific vehicle, not all.
The texture name of the shadow I know is "shad_car"
And this replace shader works because I used it in other things, I just don't understand why it didn't work for the shade.
Any solution?