Difference between revisions of "User:4everAwake"

From Bo3b's School for Shaderhackers
Jump to: navigation, search
Line 29: Line 29:
  
 
// approximately 3 instruction slots used</nowiki>
 
// approximately 3 instruction slots used</nowiki>
 +
<br>
 +
== Lesson 2 ==
 +
Before: [[File:TheBall01 4ever.jpg|700px]]
 +
 +
After:  [[File:TheBall02 4ever.jpg|700px]]

Revision as of 10:29, 9 September 2014

Lesson 0

TheBall01 99.jpg

Lesson 1

// The Ball- This shader controls DOF
// Generated by Microsoft (R) HLSL Shader Compiler 9.27.952.3022
//
// Parameters:
//
//   float4 SampleOffsets[2];
//
//
// Registers:
//
//   Name          Reg   Size
//   ------------- ----- ----
//   SampleOffsets c6       2
//

    vs_3_0
    dcl_position v0
    dcl_texcoord v1
    dcl_texcoord o0
    dcl_texcoord1 o1
    dcl_position o2
    add o0, c6, v1.xyyx
    add o1, c7, v1.xyyx
    mov o2, v0

// approximately 3 instruction slots used


Lesson 2

Before: TheBall01 4ever.jpg

After: TheBall02 4ever.jpg