This file contains hidden or 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
struct Camera { | |
// world space origin | |
glm::vec3 origin; | |
// world direction of the forward direction of the camera. | |
glm::vec3 forward; | |
// world direction of the up direction of the camera. | |
glm::vec3 up; | |
// Camera field of view (in radians); fov.y is the vertical field of view angle, | |
// and fov.x is the horizontal field of view. | |
glm::vec2 fov; |
This file contains hidden or 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 460 core | |
float sdSphere(vec3 p, float s, vec3 off) | |
{ | |
return length(p+off)-s; | |
} | |
struct Camera { | |
vec3 origin; | |
vec3 forward; | |
vec3 up; |
This file contains hidden or 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 460 core | |
float INF = 1.0 / 0.0; | |
float sdSphere(vec3 p, float s, vec3 off) | |
{ | |
return length(p+off)-s; | |
} | |
struct RayHit { |
This file contains hidden or 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 460 core | |
float INF = 1.0 / 0.0; | |
#define PI 3.14159265358979323846 | |
float rand(vec2 c){ | |
return fract(sin(dot(c.xy ,vec2(12.9898,78.233))) * 43758.5453); | |
} |
This file contains hidden or 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
package com.example.examplemod; | |
import net.minecraft.block.Block; | |
import net.minecraft.block.Blocks; | |
import net.minecraftforge.common.MinecraftForge; | |
import net.minecraftforge.event.RegistryEvent; | |
import net.minecraftforge.event.entity.player.PlayerInteractEvent; | |
import net.minecraftforge.eventbus.api.SubscribeEvent; | |
import net.minecraftforge.fml.DistExecutor; | |
import net.minecraftforge.fml.InterModComms; |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
.fm.lo.mo.Scanner/SCAN]: Scanning Mod File: /root/.gradle/caches/forge_gradle/minecraft_user_repo/net/minecraftforge/forge/1.15.2-31.1.1_mapped_snapshot_20190719-1.14.3/forge-1.15.2-31.1.1_mapped_snapshot_20190719-1.14.3-recomp.jar path /net/minecraft/block/TallSeaGrassBlock.class | |
[21:40:19] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Scanner/SCAN]: Scanning Mod File: /root/.gradle/caches/forge_gradle/minecraft_user_repo/net/minecraftforge/forge/1.15.2-31.1.1_mapped_snapshot_20190719-1.14.3/forge-1.15.2-31.1.1_mapped_snapshot_20190719-1.14.3-recomp.jar path /net/minecraft/block/ShulkerBoxBlock.class | |
[21:40:19] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Scanner/SCAN]: Scanning Mod File: /root/.gradle/caches/forge_gradle/minecraft_user_repo/net/minecraftforge/forge/1.15.2-31.1.1_mapped_snapshot_20190719-1.14.3/forge-1.15.2-31.1.1_mapped_snapshot_20190719-1.14.3-recomp.jar path /net/minecraft/block/BlockState$Cache.class | |
[21:40:19] [pool-2-thread-1/DEBUG] [ne.mi.fm.lo.mo.Scanner/SCAN]: Scanning Mod File: /root/.gradle/ |
This file contains hidden or 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
buildscript { | |
repositories { | |
maven { url = 'https://files.minecraftforge.net/maven' } | |
jcenter() | |
mavenCentral() | |
maven {url='https://dist.creeper.host/Sponge/maven'} | |
} | |
dependencies { | |
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true | |
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT' |
This file contains hidden or 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
[22:00:28] [main/INFO] [mixin/]: Mixing MixinServerWorld from mixins.examplemod.json into net.minecraft.world.server.ServerWorld | |
[22:00:28] [Thread-3/FATAL] [ne.mi.fm.lo.pr.ClientVisualization/]: WARNING : glfwInit took 1.153572156 seconds to start. | |
[22:00:28] [main/FATAL] [MixinProcessor/]: /********************************************************************************************************************************************************************/ | |
[22:00:28] [main/FATAL] [MixinProcessor/]: /* Invalid Mixin */ | |
[22:00:28] [main/FATAL] [MixinProcessor/]: /*------------------------------------------------------------------------------------------------------------------------------------------------------------------*/ | |
[22:00:28] [main/FATAL] [MixinProcessor/]: /* Action : APPLY |
This file contains hidden or 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
package lightningstike.game; | |
import lightningstike.engine.Engine; | |
import lightningstike.engine.data.*; | |
import lightningstike.engine.io.Window; | |
import lightningstike.engine.io.WindowManager; | |
import lightningstike.engine.render.DefaultRenderer; | |
import lightningstike.engine.util.ObjectsManager; | |
import org.joml.Vector2i; | |
import org.joml.Vector3f; |
This file contains hidden or 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
package lightningstike.game; | |
import lightningstike.engine.Engine; | |
import lightningstike.engine.data.*; | |
import lightningstike.engine.io.Window; | |
import lightningstike.engine.io.WindowManager; | |
import lightningstike.engine.render.DefaultRenderer; | |
import lightningstike.engine.util.ObjectsManager; | |
import org.joml.Random; | |
import org.joml.Vector2i; |