lwjglgamedev / lwjglbook-leg

Source code of the chapters of the book 3D Game Development with LWJGL 3
https://ahbejarano.gitbook.io/lwjglgamedev/
Apache License 2.0
560 stars 202 forks source link

Error running chapter 21 and 22 #11

Closed MauOcon closed 8 years ago

MauOcon commented 8 years ago

Error compiling Shader code: 0:167(2): error: return' with wrong type int, in functioncalcShadow' returning float

Solution: In scene_fragment.fs, in calcShadow change return types from 1 to 1.0

lwjglgamedev commented 8 years ago

I will check this as soon as possible, Bythway, which is your OS and GPU ? In the ones that I've tested this error does not occur.

MauOcon commented 8 years ago

Hi

My OS is Ubuntu 16.04 64 bit and my video card is Intel HD Graphics 4000

El 13/9/2016 2:59 p. m., "lwjglgamedev" notifications@github.com escribió:

I will check this as soon as possible, Bythway, which is your OS and GPU ? In the ones that I've tested this error does not occur.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lwjglgamedev/lwjglbook/issues/11#issuecomment-246804987, or mute the thread https://github.com/notifications/unsubscribe-auth/ATH40O8CZQdKsXPsPAU-1uMDVC3_FKb_ks5qpwCugaJpZM4J7F0L .

lwjglgamedev commented 8 years ago

Thanks for the info and for pointing the issue.

I've just uploaded a fix for that. Please close the issue if it works for you.