mirror of
https://github.com/photonstorm/phaser
synced 2024-12-12 06:12:53 +00:00
Expose outFragCoord
This commit is contained in:
parent
abe97b18fd
commit
88809647a6
2 changed files with 4 additions and 0 deletions
|
@ -8,12 +8,14 @@ module.exports = [
|
|||
'attribute vec2 inPosition;',
|
||||
'attribute vec2 inTexCoord;',
|
||||
'',
|
||||
'varying vec2 outFragCoord;',
|
||||
'varying vec2 outTexCoord;',
|
||||
'',
|
||||
'void main ()',
|
||||
'{',
|
||||
' gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);',
|
||||
'',
|
||||
' outFragCoord = inPosition;',
|
||||
' outTexCoord = inTexCoord;',
|
||||
'}',
|
||||
''
|
||||
|
|
|
@ -7,11 +7,13 @@ uniform mat4 uProjectionMatrix;
|
|||
attribute vec2 inPosition;
|
||||
attribute vec2 inTexCoord;
|
||||
|
||||
varying vec2 outFragCoord;
|
||||
varying vec2 outTexCoord;
|
||||
|
||||
void main ()
|
||||
{
|
||||
gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);
|
||||
|
||||
outFragCoord = inPosition;
|
||||
outTexCoord = inTexCoord;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue