Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretty to convert vsh and fsh file to swift. #202

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Pretty to convert vsh and fsh file to swift. #202

wants to merge 1 commit into from

Conversation

XWJACK
Copy link

@XWJACK XWJACK commented Oct 12, 2017

How about this? Keeping the original style.

public let ThreeInputVertexShader = """
attribute vec4 position;
attribute vec4 inputTextureCoordinate;
attribute vec4 inputTextureCoordinate2;
attribute vec4 inputTextureCoordinate3;

varying vec2 textureCoordinate;
varying vec2 textureCoordinate2;
varying vec2 textureCoordinate3;

void main()
{
        gl_Position = position;
        textureCoordinate = inputTextureCoordinate.xy;
        textureCoordinate2 = inputTextureCoordinate2.xy;
        textureCoordinate3 = inputTextureCoordinate3.xy;
}
"""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant