Comments (2)
I adapted your conversion and it works flawlessly! My particles look better than ever. The last thing I would have expected was a simple normalization to be at fault. Thanks!
from ioq3.
The rocket trail sprites (smokePuff shader) use rgbGen vertex
and are not broken. I didn't tested exactVertex right now but it probably works.
tess.color (unsigned short [4]) is set in RB_AddQuadStampExt(). tess.color becomes attr_Color in the GLSL shaders. vertColor
becomes a multiplier for the vertex color (attr_Color) in the GLSL shaders.
ioq3/code/renderergl2/glsl/generic_vp.glsl
Line 162 in 7835918
ioq3/code/renderergl2/glsl/lightall_vp.glsl
Line 218 in 7835918
RB_AddQuadStamp() in the opengl2 renderer expects color to be float[4] in the range of 0.0 to 1.0. The opengl1 renderer expects color to be byte[4] in the range 0 to 255.
This code is used to convert sprite byte color from 0-255 to 0.0-1.0 range for opengl2's RB_AddQuadStamp().
float colors[4];
VectorScale4(ent->e.shaderRGBA, 1.0f / 255.0f, colors);
RB_AddQuadStamp( ent->e.origin, left, up, colors );
from ioq3.
Related Issues (20)
- OpenGL2: Lightmap as an environment map renders incorrect with r_mergeLightmaps 1 HOT 1
- OpenGL2: r_ext_multisample > 0 breaks r_drawSunRays 1 (without HDR or FB-MSAA) HOT 1
- OpenGL2: Flares in mirrors calculate wrong depth and have wrong visibility
- Failing to open x64 game in a path with special characters HOT 3
- OpenGL2: The game is too bright and auto-exposure doesn't match the original
- OpenGL2: Curved surfaces don't use dynamic level of detail
- OpenGL2: Stencil shadow volumes are broken (cg_shadows 2) HOT 1
- OpenGL2: r_shownormals 1 is not implemented
- [Warning] Area 51 (2005) HOT 1
- rendering improvements feedback
- OpenGL2: r_greyscale doesn't affect everything
- OpenGL2: r_anaglyphMode causes 2D and HUD models to be transparent
- opengl1: Skybox in OpenGL 1.1 displays black lines at edges
- Add OpenGLES2 renderer HOT 1
- Add pk3 file caching to emscripten port
- Make emscripten port default to 85 FPS, non-V-sync HOT 1
- cgame project is not used HOT 3
- Emscripten CD Key valid but still doesn't show levels HOT 4
- Add PBR support
- Unlagged: add option to trust clients
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ioq3.