LoginSignup
0
0

More than 5 years have passed since last update.

Haxeで複数行のString

Last updated at Posted at 2015-03-13

Stringはふつうに複数行書ける。知らんかった。
WebGLでShaderを書くときに助かる。

fukusuu-gyo.hx
var hoge:String='
varying vec2 vUv;
void main() {
vUv = uv;
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
}
'
trace(hoge);
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0