This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 400 core | |
in vec3 position; | |
in vec2 uv; | |
in vec3 normal; | |
in vec3 material; | |
in mat3 TBN; | |
uniform vec3 cameraPos; | |
uniform vec3 lightDir; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
************************************ | |
* Copyright (C) 2016 ByteForge | |
* MeshGL.cpp | |
************************************ | |
*/ | |
#include "MeshGL.hpp" | |
#include <iostream> | |
#include "../IShader.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 400 core | |
in vec3 position; | |
in vec2 uv; | |
in mat3 TBN; | |
uniform sampler2D albedoTex; | |
uniform sampler2D normalTex; | |
uniform sampler2D specularTex; | |
uniform sampler2D ambientTex; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 420 core | |
in vec3 position; | |
in vec2 uv; | |
in vec3 normal; | |
in vec3 material; | |
in mat3 TBN; | |
layout (std140) uniform ubo_block | |
{ | |
mat4 vp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void grayscale_cilk(float* data, int width, int height, int n) | |
{ | |
for (int px = 0;px<height*width;++px) | |
{ | |
data[px*n:n] = __sec_reduce_add(data[px*n:n] / n); | |
} | |
} | |
//n components per pixel | |
void grayscale_scalar(float* data, int width, int height, int n) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define STB_IMAGE_IMPLEMENTATION | |
#include "stb_image.h" | |
#define STB_IMAGE_WRITE_IMPLEMENTATION | |
#include "stb_image_write.h" | |
#include <chrono> | |
#include <iostream> | |
#include <cilk/cilk.h> | |
#include <thread> | |
//n components per pixel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define STB_IMAGE_IMPLEMENTATION | |
#include "stb_image.h" | |
#define STB_IMAGE_WRITE_IMPLEMENTATION | |
#include "stb_image_write.h" | |
#include <chrono> | |
#include <iostream> | |
#include <cilk/cilk.h> | |
#include <thread> | |
//n components per pixel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 400 core | |
in vec3 position; | |
in vec2 uv; | |
in mat3 TBN; | |
in vec4 shadowCoord; | |
uniform int use_shadows; | |
uniform sampler2D albedoTex; | |
uniform sampler2D normalTex; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include make.config | |
include $(ARCHDIR)/make.config | |
CRTI_OBJ =crti.o | |
CRTBEGIN_OBJ:=$(shell $(CC) $(CFLAGS) -print-file-name=crtbegin.o) | |
CRTEND_OBJ :=$(shell $(CC) $(CFLAGS) -print-file-name=crtend.o) | |
CRTN_OBJ =crtn.o | |
OBJS:=\ | |
$(ARCH_OBJS) \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stephan@KING-PC:/mnt/f/Development/Repositories/benny$ readelf ./kernel/kernel.bin -a | |
ELF-Header: | |
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 | |
Klasse: ELF32 | |
Daten: 2er-Komplement, Little-Endian | |
Version: 1 (current) | |
OS/ABI: UNIX - System V | |
ABI-Version: 0 | |
Typ: EXEC (ausführbare Datei) | |
Maschine: Intel 80386 |