<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Am 05.07.2019 um 22:30 schrieb Ben
Grasset:<br>
</div>
<blockquote type="cite"
cite="mid:CAL4d7FjLmtZYVasnpCpRXQppdS+446TagOUDELvwAQrwTa_1yQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr"><br>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Jul 5, 2019 at 1:41
PM Ryan Joseph <<a href="mailto:genericptr@gmail.com"
moz-do-not-send="true">genericptr@gmail.com</a>> wrote:</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
This doesn’t work either.<br>
<br>
{$push}<br>
{$h+}<br>
var lines: ansistring = `<br>
#version 150<br>
<br>
uniform sampler2D textures[8];<br>
in vec2 vertexTexCoord;<br>
in vec4 vertexColor;<br>
in float vertexUVMap;<br>
out vec4 fragColor;<br>
<br>
void main()<br>
{<br>
if (vertexUVMap == 255) {<br>
fragColor = vertexColor;<br>
} else {<br>
fragColor = texture(textures[int(vertexUVMap)],
vertexTexCoord.st);<br>
if (vertexColor.a < fragColor.a) {<br>
fragColor.a = vertexColor.a;<br>
}<br>
}<br>
}`;<br>
{$pop}<br>
<br>
Regards,<br>
Ryan Joseph<br>
</blockquote>
<div><br>
</div>
<div>Doesn't work in what regard? You wouldn't even need {$H+}
there, as you're explicitly using an ansistring.</div>
</div>
</div>
</blockquote>
The constant itself is parsed depending on the state of $H and only
then "assigned" to the constant (just tested that myself). So the
directives are needed to get the correct string type of the
constant.<br>
<br>
Regards,<br>
Sven<br>
</body>
</html>