Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shader compilation error when trying to view assets #198

Open
veitikka opened this issue Aug 29, 2021 · 8 comments
Open

Shader compilation error when trying to view assets #198

veitikka opened this issue Aug 29, 2021 · 8 comments

Comments

@veitikka
Copy link

Trying to view any asset in Hide gives me the following error, I have tried on both Windows 10 and Linux, self-built and nightly builds with the latest code base. Haxe version is 4.1.5, and all the required haxelibs listed in README.md are installed using their latest git versions.

Error: An error occurred compiling the shaders:

#version 300 es
precision highp float;
in vec2 position;
in vec2 uv;
vec4 position_2;
out vec2 uv_2;
uniform vec4 vertexParams[1];


void main(void) {
    position_2 = vec4(position.x, position.y * vertexParams[0].x, 0., 1.);
    gl_Position = position_2;
    uv_2 = uv;
    gl_Position.z += gl_Position.z - gl_Position.w;
}

new haxe.ValueExpection.
$hxClasses.haxe.ValueException
Function.haxe.Exception.thrown
h3d.impl.GlDriver.compileShader
h3d.impl.GlDriver.selectShader
h3d.Engine.selectShader
h3d.pass.ScreenFX.render
Function.h3d.scene.Environment.computeIrradLut
Function.h3d.scene.Environment.getDefaultLUT
h3d.scene.pbr.Environment.get_lut
hide.PbrRenderer.beginPbr
@alexketchum
Copy link

alexketchum commented Nov 30, 2021

This is still an issue by the way. I'm on windows 10 and just downloaded a nightly build and get the same error. I haven't tested with a self build yet as I can't build the project without getting errors (even though I'm using the latest code and libraries).

@ncannasse
Copy link
Member

ncannasse commented Nov 30, 2021 via email

@alexketchum
Copy link

I tried this on a laptop with Radeon Vega 6 Graphics with the latest drivers. It works as expected on my desktop though.

@ncannasse
Copy link
Member

Could you check if it works better if you set isIntelGpu=true in h3d/impl/GlDriver.hx ?

@GlassySundew
Copy link

having same issue on a laptop with linux, tried both discrete nvidia gpu(1050ti, akmod nvidia driver) and intel hd graphics

@GlassySundew
Copy link

also setting isIntelGpu as true didnt help

@GlassySundew
Copy link

i just turneed off pbr rendering in Project > Renderer and it started working

@alexketchum
Copy link

Huh... that fixed it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants