On 2014/03/09 0:53, Jukka Jylänki wrote:
>
> There are a few other syntax renames like this. What I do is I author
> my shaders in the old GLES2 syntax, and then when building for
> desktop, just use naive string replaces at startup time to convert the
> shaders so they pass in core GL3. Also, using VAOs is not required in
> GLES2 and WebGL, but it is mandatory in GL3.
>
If the desktop GL you are running on supports one of the
ARB_ES[23]_compatibility extensions, which is quite common, you can use
#version 100 (GLSL ES 1.00) shaders. Just make sure the first line is
"#version 100".
Regards
-Mark
--
注意:この電子メールには、株式会社エイチアイの機密情報が含まれている場合
が有ります。正式なメール受信者では無い場合はメール複製、 再配信または情
報の使用を固く禁じております。エラー、手違いでこのメールを受け取られまし
たら削除を行い配信者にご連絡をお願いいたし ます.
NOTE: This electronic mail message may contain confidential and
privileged information from HI Corporation. If you are not the intended
recipient, any disclosure, photocopying, distribution or use of the
contents of the received information is prohibited. If you have received
this e-mail in error, please notify the sender immediately and
permanently delete this message and all related copies.
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.