mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 04:23:20 +01:00
* Improve performance of panning the viewport with OpenGL renderer * Use a shader to perform the copy rect operation * Clear the frame buffer after its initialized * Handle Y flip in shader, be explicit about FBO draw state * Target 330 core, remove the y flip handling * Explicitly use GL_RGB8 and not GL_RGB * Add more error handling, clear depth when depth is created * Lets try this * Make sure blend and depth are disabled * Bind the source fbo for reading * Try this alternative approach * Set read and draw buffer before glBlitFramebuffer * Apple is forcing my hand * Update changelog.txt
14 lines
206 B
GLSL
14 lines
206 B
GLSL
#version 330 core
|
|
|
|
uniform vec4 uPalette[256];
|
|
uniform usampler2D uTexture;
|
|
|
|
in vec2 fTextureCoordinate;
|
|
|
|
out vec4 oColour;
|
|
|
|
void main()
|
|
{
|
|
oColour = uPalette[texture(uTexture, fTextureCoordinate).r];
|
|
}
|