Jump to content

Remove shader problem


Recommended Posts

  
    myShader, tec = dxCreateShader ( "water.fx" ) 
  
    function applyWaterShader() 
      
        local textureVol = dxCreateTexture ( "images/smallnoise3d.dds" ); 
        local textureCube = dxCreateTexture ( "images/cube_env256.dds" ); 
            dxSetShaderValue ( myShader, "sRandomTexture", textureVol ); 
            dxSetShaderValue ( myShader, "sReflectionTexture", textureCube ); 
      
        engineApplyShaderToWorldTexture ( myShader, "waterclear256" ) 
    end 
      
    function removeWaterShader() 
        engineRemoveShaderFromWorldTexture( myShader, "waterclear256" ) 
    end 
  
  

This was my problem before, try that instead.

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...