Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F630954
pbr_ship_vs.txt
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
908 B
Referenced Files
None
Subscribers
None
pbr_ship_vs.txt
View Options
attribute vec4 in_vertex;
attribute vec3 in_normal;
attribute vec4 in_tangent;
attribute vec2 in_uv;
attribute vec4 in_color;
attribute vec4 in_uv2;
uniform mat3 invView;
varying vec3 forward, right;
varying vec3 npos;
varying vec3 normal, binormal, tangent;
varying vec2 uv, uv2, uv3;
varying vec4 vertPaint;
void main()
{
normal = normalize(gl_NormalMatrix * in_normal);
tangent = normalize(gl_NormalMatrix * in_tangent.xyz);
binormal = normalize(gl_NormalMatrix * cross(normal, in_tangent.xyz * in_tangent.w));
forward = normalize(invView * vec3(1.0,0.0,0.0));
right = normalize(invView * vec3(0.0,0.0,1.0));
vec4 pos = gl_ModelViewMatrix * in_vertex;
npos = -pos.xyz;
vertPaint = in_color;
uv = in_uv;
uv.y = 1.0 - uv.y;
uv2 = in_uv2.xy;
uv2.y = 1.0 - uv2.y;
uv3 = in_uv2.zw;
uv3.y = 1.0 - uv3.y;
gl_Position = gl_ProjectionMatrix * pos;
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, Nov 15, 10:48 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
139722
Default Alt Text
pbr_ship_vs.txt (908 B)
Attached To
Mode
R80 StarRuler2-Source
Attached
Detach File
Event Timeline