8,229 questions
-3
votes
0
answers
69
views
What is the OpenGL profile used by SDL2? [duplicate]
I've noticed something very curious: if I use these functions to define a lower version of OpenGL than my video card supports, I can still use higher shader versions. Example.
SDL_GL_SetAttribute(...
1
vote
0
answers
70
views
Unable to render sprites in batches / instances using SDL3 GPU API and Odin. SSBO is not available to shader
I am new to graphics in general, so I am trying to learn from others.
After drawing a triangle, a quad and then a sprite on top, I have been trying to get a batch of them on screen using instancing.
...
1
vote
0
answers
88
views
Ursina Engine Shaders MacOS
I have freshly installed ursina in a virtual environment. I am trying to set up a basic scene with some lighting:
from ursina import *
class Pivot(Entity):
def update(self):
self....
3
votes
1
answer
149
views
Square not rendered in OpenGL
I'm trying to program a simple game in java using lwjgl and OpenGL but I'm not able to render a square to the window. Can someone help?
The render function in render class is called evert frame and ...
1
vote
1
answer
60
views
LibGDX Shader comes out stretched, if the Viewport world size is not square
First of all, I'm using this library for post-processing in LibGDX: https://github.com/manuelbua/libgdx-contribs
I added a new custom Effect to it by extending Filter and PostProcessorEffect.
It's a ...
1
vote
2
answers
121
views
GLSL shader not showing anything in scene in THREE.js - why?
I'm trying to make my own shader for a THREE.js project I'm working on, and I wanted to make a GLSL shader as part of it for one of the meshes in my scene. However, despite writing very basic code for ...
-1
votes
2
answers
128
views
Instead of a texture atlas, dump all images in one buffer
In a texture atlas the individual images are arranged geometrically. The texture atlas itself is an image that can be viewed in any image viewer.
I was wondering if it was possible, to simply dump all ...
1
vote
1
answer
46
views
Does GLSL spec permit cases when PS-input mismatched with VS-output?
On my NVIDIA GPU these 2 shaders work fine:
// VS
#version 450
layout(location = 0) in vec4 inPosition;
layout(location = 0) out struct {
vec2 dummy;
uvec4 variableInStruct;
} testStruct;
void ...
2
votes
0
answers
66
views
How to use canvas.drawVertices with custom fragment shaders simultaneously in Flutter Canvas?
I have a requirement to draw a knitting needle effect image.
I implemented a rope texture shading effect using fragment shader code, but there are over 20,000 ropes. I'm using canvas.drawRect(),to ...
1
vote
0
answers
101
views
Why does this Slang code compile to a SPIR-V that skips 3 floats every 4 floats in matrices?
I am trying to learn the Slang shading language for use in a Vulkan framework and I was writing a very basic white only shader.
module white;
struct VertexIn {
float3 position : Position;
};
...
0
votes
0
answers
71
views
Flutter shaders: aurora points blending
I have an application that displays the northern lights on a map.
I receive a lot of points that need to be rendered (2000+ points).
Here’s what the final result should look like:
Since this puts a ...
1
vote
0
answers
107
views
Custom Raylib Shader Problem, Unable To See My Textures
I have written a custom shader for both vs and fs. The shader is supposed to draw two textures one in the front face of the cube and the other is in the back face of the cube. What I'm struggling with ...
3
votes
0
answers
103
views
SPIR-V extension suddenly needed to use discard, why?
While loading spir-v shaders in my application I suddenly started getting the following validation error:
[ERROR: Validation]
vkCreateShaderModule(): SPIR-V Capability DemoteToHelperInvocation was ...
0
votes
1
answer
97
views
glsl shader - cant get transparency
I'm currently trying to build a shader for a FogOfWar with pyglet and a glsl shader. I've now tried several things and looked at courses, but I just can't get it done.
Can someone here tell me what ...
0
votes
1
answer
75
views
Is it possible to do instanced rendering with different textures without non-uniform indexing?
For a long time I thought gl_InstanceID was dynamically uniform, but it isn't. And so if you instance render a bunch of instances and you don't have support for non-uniform sampled image indexing, ...