Here are four command suggestions, changed to be distinct from each other and reasonably simple to implement.
The commands are specialized towards the view-direction and field-of-view of entities.
/raycast <distance> <accuracy> <chained command>
| // vec2 uv: XY=[0..1] | |
| // vec4 size: XY=1.0/TEXSIZE, ZW=TEXSIZE. | |
| // sampler2D samplr: MIN,MAG = LINEAR | |
| vec4 pixel_perfect_sample(vec2 uv, vec4 size, in sampler2D samplr) { | |
| vec2 boxSize = clamp(fwidth(uv) * size.zw, 1e-5, 1.0); | |
| vec2 tx = uv * size.zw - 0.5 * boxSize; | |
| vec2 txOffset = smoothstep(1.0 - boxSize, vec2(1.0), fract(tx)); | |
| vec2 finaluv = (floor(tx) + 0.5 + txOffset) * size.xy; | |
| return textureGrad(samplr, finaluv, dFdx(uv), dFdy(uv)); | |
| } |
| Begin Object Class=/Script/Engine.MaterialFunction Name="MF_GridLines" | |
| Begin Object Class=/Script/Engine.Material Name="Material_0" | |
| Begin Object Class=/Script/Engine.MaterialEditorOnlyData Name="Material_0EditorOnlyData" | |
| End Object | |
| End Object | |
| Begin Object Class=/Script/Engine.MaterialExpressionMaterialFunctionCall Name="MaterialExpressionMaterialFunctionCall_14" | |
| End Object | |
| Begin Object Class=/Script/Engine.MaterialExpressionMax Name="MaterialExpressionMax_2" | |
| End Object | |
| Begin Object Class=/Script/Engine.MaterialExpressionFunctionOutput Name="MaterialExpressionFunctionOutput_1" |
| import re | |
| import sys | |
| import fontforge | |
| print(f"MSDF Multi-Font Merger & Generator! Python {sys.version}") | |
| merged = None | |
| #merged = fontforge.font() | |
| #merged.fontname = "merged" | |
| #merged.encoding = "UnicodeFull" |
| //Java port of: | |
| //EASINGS :: https://github.com/prideout/par | |
| //Robert Penner's easing functions. | |
| // | |
| //The MIT License | |
| //Copyright (c) 2015 Philip Rideout | |
| //Ported by: | |
| //Lars Longor K |
| /** | |
| * Voronoise Function! | |
| * Taken from: https://www.shadertoy.com/view/Xd23Dh | |
| * Created by inigo quilez - iq/2014 | |
| * Ported by Lars Longor1996 K - 16.04.2015 | |
| * Version: 3 | |
| * | |
| * @param xX sample position, x | |
| * @param xY sample position, y | |
| * @param u squareness |
| package de.jailong.engine.graphics; | |
| import java.nio.FloatBuffer; | |
| import java.util.Arrays; | |
| import org.lwjgl.BufferUtils; | |
| import org.lwjgl.opengl.GL11; | |
| import org.lwjgl.opengl.GL13; | |
| public class VertexArrayDrawer implements IDrawer |
| /* | |
| WARNING: This code is: | |
| - NOT commented. | |
| - NOT fully tested. | |
| - NOT safe for instant usage. | |
| - A bit messy. | |
| Also note that there is no exception/error/problem-checking at all. | |
| Use at your own caution. |
| (formatting may be messed up!) | |
| DCPU-MK2 Specification | |
| Copyright 2013 Longor1996 | |
| Version 1.0 | |
| NOTE THAT THIS SPECIFICATION IS STILL PARTIALLY ERROR-PRONE! | |
| THERE MAY BE FATAL LOGICAL MISTAKES IN IT! | |
| READ AND USE WITH CAUTION AND TAKE EVERYTHING WITH A GRAIN OF SALT! |