Sign in to follow this  
DmAr511

خطأ بلشادر !

Recommended Posts

shader = dxCreateShader("blur.fx")
screenS = dxCreateScreenSource(sX,sY)


function showShader()
dxUpdateScreenSource(shader)
dxSetShaderValue(shader, "ScreenSource", screenS);
dxSetShaderValue(shader, "UVSize", sX, sY);
dxSetShaderValue(shader, "BlurStrength", 9 );
dxDrawImage(0, 0, 1366, 768, shader)
end

جربت اسويه وماظبط + بلدي بق مايكتب شي

Share this post


Link to post
Posted (edited)

جرب

shader = dxCreateShader("blur.fx")
screenS = dxCreateScreenSource(sX,sY)


function showShader()
dxUpdateScreenSource(shader)
dxSetShaderValue(shader, "ScreenSource", screenS);
dxSetShaderValue(shader, "UVSize", sX, sY);
dxSetShaderValue(shader, "BlurStrength", 9 );
dxDrawImage(0, 0, 1366, 768, shader)
end
addEventHandler("onClientResourceStart",root, showShader)

 

Edited by salh

Share this post


Link to post

استخدمه داخل الرندر

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.