Difference between revisions of "User:Volnaiskra"

From Bo3b's School for Shaderhackers
Jump to: navigation, search
(Created page with "hello world 700px")
 
 
Line 2: Line 2:
  
 
[[File:TheBall01_85.jpg|700px]]
 
[[File:TheBall01_85.jpg|700px]]
 +
 +
<br>
 +
 +
==Lesson 1==
 +
 +
<nowiki>
 +
//
 +
// Generated by Microsoft (R) HLSL Shader Compiler 9.27.952.3022
 +
//
 +
// Parameters:
 +
//
 +
//  float4x4 LocalToWorld;
 +
//  float4x4 ViewProjectionMatrix;
 +
//
 +
//
 +
// Registers:
 +
//
 +
//  Name                Reg  Size
 +
//  -------------------- ----- ----
 +
//  ViewProjectionMatrix c0      4
 +
//  LocalToWorld        c6      4
 +
//
 +
 +
    vs_3_0
 +
    dcl_position v0
 +
    dcl_position o0
 +
    mul r0, c7, v0.y
 +
    mad r0, c6, v0.x, r0
 +
    mad r0, c8, v0.z, r0
 +
    mad r0, c9, v0.w, r0
 +
    mul r1, r0.y, c1
 +
    mad r1, c0, r0.x, r1
 +
    mad r1, c2, r0.z, r1
 +
    mad o0, c3, r0.w, r1
 +
 +
// approximately 8 instruction slots used
 +
 +
 +
 +
 +
</nowiki>

Latest revision as of 03:42, 14 March 2015

hello world

TheBall01 85.jpg


Lesson 1

//
// Generated by Microsoft (R) HLSL Shader Compiler 9.27.952.3022
//
// Parameters:
//
//   float4x4 LocalToWorld;
//   float4x4 ViewProjectionMatrix;
//
//
// Registers:
//
//   Name                 Reg   Size
//   -------------------- ----- ----
//   ViewProjectionMatrix c0       4
//   LocalToWorld         c6       4
//

    vs_3_0
    dcl_position v0
    dcl_position o0
    mul r0, c7, v0.y
    mad r0, c6, v0.x, r0
    mad r0, c8, v0.z, r0
    mad r0, c9, v0.w, r0
    mul r1, r0.y, c1
    mad r1, c0, r0.x, r1
    mad r1, c2, r0.z, r1
    mad o0, c3, r0.w, r1

// approximately 8 instruction slots used