Skip to content

Instantly share code, notes, and snippets.

View dotxnc's full-sized avatar

.xnc dotxnc

View GitHub Profile
#version 330
in vec2 fragTexCoord;
in vec4 fragColor;
in vec3 fragNormal;
in vec3 fragPos;
uniform sampler2D texture0;
uniform vec3 lightDirection = vec3(1.f, -0.3f, -0.5f);
#include "gbuffer.h"
/* gbuffer_t type
typedef struct gbuffer_t {
unsigned int id;
int width;
int height;
Texture2D color;
Texture2D normal;
Texture2D position;
/**********************************************************************************************
*
* rlgl - raylib OpenGL abstraction layer
*
* rlgl is a wrapper for multiple OpenGL versions (1.1, 2.1, 3.3 Core, ES 2.0) to
* pseudo-OpenGL 1.1 style functions (rlVertex, rlTranslate, rlRotate...).
*
* When chosing an OpenGL version greater than OpenGL 1.1, rlgl stores vertex data on internal
* VBO buffers (and VAOs if available). It requires calling 3 functions:
* rlglInit() - Initialize internal buffers and auxiliar resources
#ifndef RAYNAMES_H
#define RAYNAMES_H
/* raylib.h */
#define vector2_t Vector2
#define vector3_t Vector3
#define vector4_t Vector4
#define matrix_t Matrix
#define color_t Color
" Quit when a syntax file was already loaded
if exists("b:current_syntax")
finish
endif
" Keywords - Features
" Match the feature keyword and capture the identifier after it
syntax keyword hyperFeature behavior def eventsource js init on socket worker if then else end nextgroup=hyperIdentifier skipwhite
syntax match hyperIdentifier "\v[a-zA-Z_][a-zA-Z0-9_]*" contained