I hope that I can solve this, for now I just hardcode the shader into the
src file before accessing it.
On the same line I have one more question. Writing shaders for desktop with
layout, in and out then rewriting the same code for gles with varying,
attribute etc, does SDL provide a way to abstract that away?
Have you checked what glGetShaderInfoLog() has to say?
SDL does not currently have any abstraction (or interface, for that matter)
for shaders. You’ll have to either write multiple versions of the same
shaders or write your own translation layer.
Jonny DOn Tue, Aug 18, 2015 at 11:28 AM, Owen Alanzo Hogarth wrote:
I am reading a file using SDL but the string it returns doesn’t work
properly in my shader, it renders a black screen. Here’s the read file
function
I hope that I can solve this, for now I just hardcode the shader into the
src file before accessing it.
On the same line I have one more question. Writing shaders for desktop
with layout, in and out then rewriting the same code for gles with varying,
attribute etc, does SDL provide a way to abstract that away?
Thanks for the info, helped me sort out the issues. I might have to write a
light gl core to es translator.On Tue, Aug 18, 2015 at 11:37 PM, Jonathan Dearborn wrote:
Have you checked what glGetShaderInfoLog() has to say?
SDL does not currently have any abstraction (or interface, for that
matter) for shaders. You’ll have to either write multiple versions of the
same shaders or write your own translation layer.
Jonny D
On Tue, Aug 18, 2015 at 11:28 AM, Owen Alanzo Hogarth <@Owen_Alanzo_Hogarth wrote:
I am reading a file using SDL but the string it returns doesn’t work
properly in my shader, it renders a black screen. Here’s the read file
function
I hope that I can solve this, for now I just hardcode the shader into the
src file before accessing it.
On the same line I have one more question. Writing shaders for desktop
with layout, in and out then rewriting the same code for gles with varying,
attribute etc, does SDL provide a way to abstract that away?