~vladh/peony

860993a1b611a813debf36067dd07b7d9ab3495b — Vlad-Stefan Harbuz 1 year, 7 months ago e2047df
shorten copyright in shaders
M src_shaders/axes.frag => src_shaders/axes.frag +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

in BLOCK {
  vec3 normal;

M src_shaders/base.vert => src_shaders/base.vert +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

uniform mat4 model_matrix;
uniform mat3 model_normal_matrix;

M src_shaders/blur.frag => src_shaders/blur.frag +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

uniform sampler2D source_texture;


M src_shaders/common.glsl => src_shaders/common.glsl +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

#version 410 core


M src_shaders/common_fragment.glsl => src_shaders/common_fragment.glsl +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

#define GAMMA 2.2
#define WATER_F0 0.02037

M src_shaders/debugdraw.frag => src_shaders/debugdraw.frag +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

in BLOCK {
  vec4 color;

M src_shaders/debugdraw.vert => src_shaders/debugdraw.vert +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

layout (location = 0) in vec3 position;
layout (location = 1) in vec4 color;

M src_shaders/discard.frag => src_shaders/discard.frag +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

out vec4 frag_color;


M src_shaders/gui_generic.frag => src_shaders/gui_generic.frag +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

in BLOCK {
  vec2 tex_coords;

M src_shaders/gui_generic.vert => src_shaders/gui_generic.vert +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

layout (location = 0) in vec2 position;
layout (location = 1) in vec2 tex_coords;

M src_shaders/lighting.frag => src_shaders/lighting.frag +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

uniform sampler2D g_position_texture;
uniform sampler2D g_normal_texture;

M src_shaders/normal_visualizer.geom => src_shaders/normal_visualizer.geom +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

layout (triangles) in;
layout (line_strip, max_vertices=32) out;

M src_shaders/postprocessing.frag => src_shaders/postprocessing.frag +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

uniform sampler2D l_color_texture;
uniform sampler2D bloom_texture;

M src_shaders/renderdebug.frag => src_shaders/renderdebug.frag +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

uniform sampler2D g_position_texture;
uniform sampler2D g_normal_texture;

M src_shaders/screenquad.vert => src_shaders/screenquad.vert +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

layout (location = 0) in vec3 position;
layout (location = 1) in vec3 normal;

M src_shaders/simple.frag => src_shaders/simple.frag +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

out vec4 frag_color;


M src_shaders/skysphere.frag => src_shaders/skysphere.frag +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

in BLOCK {
  vec3 world_position;

M src_shaders/skysphere.vert => src_shaders/skysphere.vert +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

layout (location = 0) in vec3 position;
layout (location = 1) in vec3 normal;

M src_shaders/standard.frag => src_shaders/standard.frag +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

uniform sampler2D albedo_texture;
uniform sampler2D metallic_texture;

M src_shaders/standard.vert => src_shaders/standard.vert +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

uniform mat4 model_matrix;
uniform mat3 model_normal_matrix;

M src_shaders/standard_depth.frag => src_shaders/standard_depth.frag +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

in BLOCK {
  vec4 world_position;

M src_shaders/standard_depth.geom => src_shaders/standard_depth.geom +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

layout (triangles) in;
layout (triangle_strip, max_vertices=18) out;

M src_shaders/standard_depth.vert => src_shaders/standard_depth.vert +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

uniform mat4 model_matrix;
uniform mat4 bone_matrices[MAX_N_BONES];

M src_shaders/unknown.frag => src_shaders/unknown.frag +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

out vec4 frag_color;


M src_shaders/water.frag => src_shaders/water.frag +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

#define N_UNDERWATER_POSITION_SAMPLES 1


M src_shaders/water.geom => src_shaders/water.geom +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

#define N_VERTICES 3


M src_shaders/water.vert => src_shaders/water.vert +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

uniform mat4 model_matrix;


M src_shaders/water_depth.vert => src_shaders/water_depth.vert +1 -5
@@ 1,8 1,4 @@
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/
// (c) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>

uniform mat4 model_matrix;