Jump to content

Writing shaders


BadMasterUA
 Share

Recommended Posts

I asked the same some month ago and it seems like there are not so many shader devs here. The best Solution for me were some tutorials from the net and reading the code from the included shaders.

 

Shadmar and klepto are some of the Gurus here also rastar with bis tesselation shader. Check Out bis blog. I would also like to See some More Advanced shader discussions

It doesn´t work... why? mhmmm It works... why?

Link to comment
Share on other sites

There no fastpath, I started using HLSL (microsoft way) in forward rendering in 2010, just messing around modding shaders.

Shaders rely heavily on engine inputs, like specific matrices and attributes. Alltho HLSL and GLSL are somewhat similar (syntax vary abit, float3 in hlsl is vec3 in glsl, saturate in hlsl is clamp in glsl, lerp is mix , hlsl uses mul while glsl just use * ..and so on..)

Vertex shaders are computed per vertex while fragment shader are per pixel.

 

I'd think learning forward rendering first would be better since you get a understanding of how lightning works.

Leadwerks 3.0 is a forward renderer (start here) or use opengl, Leadwerks 2.X and 3.1 are deferred (where all lighting is done for you in a prepass)

 

Sorry not very helpful, but it is what it is..

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...