User Tools

Site Tools


en:tutorials:shaders:shaders_in_screen_space

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:tutorials:shaders:shaders_in_screen_space [2020/08/05 05:28 (5 years ago)] – created sausageen:tutorials:shaders:shaders_in_screen_space [2020/08/31 05:37 (5 years ago)] (current) – ↷ Links adapted because of a move operation sausage
Line 14: Line 14:
 ===== Setup ===== ===== Setup =====
  
-Let's start as usual by creating a default project using the [[en:tutorials:creating_your_own_project|init tool]].+Let's start as usual by creating a default project using the [[en:tutorials:projects:creating_your_own_project|init tool]].
  
 I'm going to make a few little changes to the default project config, making the game area an 800x600 window with a blue background to be able to illustrate things clearly: I'm going to make a few little changes to the default project config, making the game area an 800x600 window with a blue background to be able to illustrate things clearly:
Line 58: Line 58:
 Here is the result: Here is the result:
  
-{{ :en:tutorials:shaders:shader-basic-05.png?nolink |}}+{{ tutorials:shaders:shader-basic-05.png?nolink |}}
  
 Well... there does appear to be some gradient between red and yellow occurring inside the texture rectangle. But the effect is subtle, if there at all. And is certainly not obvious what is happening. Well... there does appear to be some gradient between red and yellow occurring inside the texture rectangle. But the effect is subtle, if there at all. And is certainly not obvious what is happening.
Line 73: Line 73:
 Run it and you'll see: Run it and you'll see:
  
-{{ :en:tutorials:shaders:shader-basic-06.png?nolink |}}+{{ tutorials:shaders:shader-basic-06.png?nolink |}}
  
 This should make things clearer. The pixel positions are mapped from the entire screen space and not from the dimensions of the texture as done with ''gl_TexCoord[0]''. This should make things clearer. The pixel positions are mapped from the entire screen space and not from the dimensions of the texture as done with ''gl_TexCoord[0]''.
Line 98: Line 98:
 Which looks like this: Which looks like this:
  
-{{ :en:tutorials:shaders:shader-basic-07.png?nolink |}}+{{ tutorials:shaders:shader-basic-07.png?nolink |}}
  
 The Orx logo texture is calculated in screen space, but is rendered into the texture which gives that great cut-out mask effect. The Orx logo texture is calculated in screen space, but is rendered into the texture which gives that great cut-out mask effect.
en/tutorials/shaders/shaders_in_screen_space.1596630512.txt.gz · Last modified: 2020/08/05 05:28 (5 years ago) by sausage