Skip to content

Commit

Permalink
✨ Apply clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Schneegans committed Feb 16, 2025
1 parent 0a02771 commit fab3f31
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Skybox.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ var SkyboxEffect = GObject.registerClass({
vfunc_build_pipeline() {

// In the vertex shader, we compute the view space position of the actor's corners.
this.add_glsl_snippet(Cogl.SnippetHook ? Cogl.SnippetHook.VERTEX : Shell.SnippetHook.VERTEX, 'varying vec4 vsPos;',
'vsPos = cogl_modelview_matrix * cogl_position_in;', false);
this.add_glsl_snippet(
Cogl.SnippetHook ? Cogl.SnippetHook.VERTEX : Shell.SnippetHook.VERTEX,
'varying vec4 vsPos;', 'vsPos = cogl_modelview_matrix * cogl_position_in;', false);

const fragmentDeclares = `
varying vec4 vsPos;
Expand Down Expand Up @@ -103,8 +104,9 @@ var SkyboxEffect = GObject.registerClass({
cogl_color_out = texture2D(uTexture, vec2(x, y));
`;

this.add_glsl_snippet(Cogl.SnippetHook ? Cogl.SnippetHook.FRAGMENT : Shell.SnippetHook.FRAGMENT, fragmentDeclares, fragmentCode,
false);
this.add_glsl_snippet(
Cogl.SnippetHook ? Cogl.SnippetHook.FRAGMENT : Shell.SnippetHook.FRAGMENT,
fragmentDeclares, fragmentCode, false);
}

// For each draw call, we have to set some uniform values.
Expand Down

0 comments on commit fab3f31

Please sign in to comment.