xbdev - software development
Friday February 23, 2024
home | contact | Support


Making our graphics card work for us..


Shaders - Simple 3 - Let there be light

by bkenwright@xbdev.net




// code_1.vsh




// Transform our coordinates

m4x4             oPos,    v0,    c0    // v0-Input coordinates


// Simple Lighting Calculation

dp3               r0,         v3,    c4

mul               oD0,      r0.x,  v5






Advert (Support Website)

Copyright (c) 2002-2024 xbdev.net - All rights reserved.
Designated articles, tutorials and software are the property of their respective owners.