Skip to content

Instantly share code, notes, and snippets.

View feliwir's full-sized avatar
👨‍💻
Coding along

Stephan Vedder feliwir

👨‍💻
Coding along
  • mbits imaging GmbH
  • Germany
View GitHub Profile
#version 400 core
in vec3 position;
in vec2 uv;
in vec3 normal;
in vec3 material;
in mat3 TBN;
uniform vec3 cameraPos;
uniform vec3 lightDir;
/*
************************************
* Copyright (C) 2016 ByteForge
* MeshGL.cpp
************************************
*/
#include "MeshGL.hpp"
#include <iostream>
#include "../IShader.hpp"
#version 400 core
in vec3 position;
in vec2 uv;
in mat3 TBN;
uniform sampler2D albedoTex;
uniform sampler2D normalTex;
uniform sampler2D specularTex;
uniform sampler2D ambientTex;
#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;
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)
#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
#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
#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;
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) \
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