Version du GLSL dans les Shaders
Share PostTwitterFacebook
News en vrac / WP sandbox
Share PostTwitterFacebook
Share PostTwitterFacebook
Share PostTwitterFacebook
Share PostTwitterFacebook
Share PostTwitterFacebook
Share PostTwitterFacebook
Share PostTwitterFacebook
Share PostTwitterFacebook
Basic stateless “Particle System” calculated entirely as vertex shader. Share PostTwitterFacebook
80,000,000 de polygones… c’est cool l’instancing! Share PostTwitterFacebook
Share PostTwitterFacebook
Bump mapping – front face Share PostTwitterFacebook
Share PostTwitterFacebook
Here is a GLSL code snippet to convert the exponential depth to a linear value: float f=1000.0; float n = 0.1; float z = (2 * n) / (f + n – texture2D( texture0, texCoord ).x * (f – n)); where: – f = camera far plane – n = camera near plane – texture0 […]
The tutorial The Art of Texturing Using the OpenGL Shading Language has been included in OpenGL.org website in OpenGL API OpenGL Shading Language Sample Code & Tutorials section. Rather cool… 😉 Share PostTwitterFacebook
As I said in this news, the release of Catalyst 8.10 BETA comes with a nice bugfix: vertex texture fetching is now operational on Radeon (at least on my Radeon HD 4850). From 2 or 3 months, Catalyst makes it possible to fetch texture from inside a vertex shader. You can see with GPU Caps […]
During the conversion of shaders written in Cg/HLSL, we often find the saturate() function. This function is not valid in GLSL even though on NVIDIA, the GLSL compiler accepts it (do not forget that NVIDIA’s GLSL compiler is based on Cg compiler). But ATI’s GLSL compiler will reject saturate() with a nice error. This function […]
A user from oZone3D.Net forum asked me some info about the GLSL support of Intel graphics chips. It’s wellknown (sorry Intel) that Intel has a bad OpenGL support in its Windows drivers and even if Intel’s graphics drivers support OpenGL 1.5, there is still a lack of GLSL support. We can’t find the GL_ARB_shading_language_100 extension […]
Packing a [0-1] float value into a 4D vector where each component will be a 8-bits integer: vec4 packFloatToVec4i(const float value) { const vec4 bitSh = vec4(256.0*256.0*256.0, 256.0*256.0, 256.0, 1.0); const vec4 bitMsk = vec4(0.0, 1.0/256.0, 1.0/256.0, 1.0/256.0); vec4 res = fract(value * bitSh); res -= res.xxyz * bitMsk; return res; } Unpacking a [0-1] […]
[French] Voici la liste des extensions OpenGL supportées par les pilotes Forceware 174.20. [/French] [English] Here is the list of OpenGL extensions supported by Forceware 174.20 drivers. [/English] OpenGL Extensions: 161 extensions Share PostTwitterFacebook