Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 17/10/19 in all areas

  1. السلام عليكم قمت بتطوير موقع خاص بمجتمع للسيرفرات تقدر تحصل عليه مجانا بدون مقابل + مسموح بحذف الحقوق + سهولة التعديل عليه استكشف باقي المميزات من خلال معاينة مباشرة https://uest.netlify.com/ تم استعمال : HTML5, CSS3, SASS, Javascript..etc للتحميل: ----
    1 point
  2. You can create several RTs and write the result of the shader into them. And already display RT themselves.
    1 point
  3. You need output results from shader. local rt = dxCreateRendertTarget(600, 600, true) dxSetRenderTarget(rt) dxDrawImage(0, 0, 600, 600, shader) dxSetRenderTarget() Test it code: local sX,sY = guiGetScreenSize() local gradientShader = dxCreateShader("files/shader/gradient.fx") local rt = dxCreateRenderTarget(sX*0.3, sY*0.05, true) function drawThings() dxSetRenderTarget(rt) dxDrawRectangle(0,0,sX*0.3, sY*0.05) dxSetRenderTarget() --texture = dxCreateTexture(dxGetTexturePixels(rt)) -- useless (RENDERTARGET = TEXTURE!) dxSetShaderValue(gradientShader, "tex", rt) dxSetShaderValue(gradientShader, "startColor", 207/255, 22/255, 124/255,1) dxSetShaderValue(gradientShader, "endColor", 239/255, 56/255, 48/255,1) addEventHandler("onClientRender",root,renderThings) end function renderThings() dxDrawImage(sX*0.05,sY*0.1,sX*0.3, sY*0.05, gradientShader) end drawThings() Or what do you want to do?
    1 point
  4. مشالله تصميم روعه .. بلتوفيق لك
    1 point
  5. float4 color = tex2D(Sampler0,TexCoord); return startColor* (1.0f - TexCoord.x)+endColor * TexCoord.x; ??? float4 color = tex2D(Sampler0,TexCoord); return color*(startColor*(1.0f-TexCoord.x)+endColor*TexCoord.x); // ?
    1 point
  6. addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() local office = engineLoadTXD("cj_office.txd") local house = engineLoadTXD("sfn_office.txd") engineImportTXD(office, 1999) engineImportTXD(house, 9361) end )
    1 point
×
×
  • Create New...