Revision history of "Lua Shaders"

From GiderosMobile

There is no edit history for this page.

This page has been deleted. The deletion, protection, and move log for the page are provided below for reference.

  • 21:07, 5 November 2023 MoKaLux talk contribs deleted page Lua Shaders (content was: "__NOTOC__ == LUA Shaders == === Description === === Creating a Shader === Typical Lua Vertex and Fragment shader code: <syntaxhighlight lang="lua"> function vertex(vVertex,vColor,vTexCoord) local vertex = hF4(vVertex,0.0,1.0) fTexCoord=vTexCoord return vMatrix*vertex end function fragment() local frag=lF4(fColor)*texture2D(fTexture, fTexCoord) local coef=lF3(0.2125, 0.7154, 0.0721) local gray=dot(frag.rgb,coef) frag.rgb=lF3(gray,gray,gray) if (frag.a==0.0) then discard...")