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
--[[ | |
Usage: | |
// setup the paths and build options | |
DEGFX_InitPaths(...) | |
DEGFX_InitRenderers(...) | |
// add the projects to build | |
DEGFX_IncludeProjects() | |
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
//========================================================== | |
// Toon Shader | |
//========================================================== | |
// Features: | |
// - artist supplied *tone* ramp | |
// - Control map to force shadow/highlight | |
// - model-space vertical 1px shade control (hat shadows, etc) | |
// - MSDF *linework* map | |
// - rimlight glow | |
// - geometry-shader outlines |
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
<graph name="Material" candebug="false" color="orange"> | |
<!-- | |
<in /> = designates an input socket | |
<out /> = designates an output socket | |
<metadata></metadata> = can be attached to sockets or nodes themselves | |
List of Metadata: [NAME], [valid targets] = [purpose/effect] | |
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
#include "AnimProc.h" | |
#include "../Graphics/Animation.h" | |
#include "../IO/Log.h" | |
namespace Urho3D | |
{ | |
/// Pulls out an interpolated keyframe from a track based on time. | |
/// The time value of the key will be set to the given time value, overwrite if undesired. |
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
MotionWheel::MotionWheel(Context* ctx) : Component(ctx), | |
traveledDistance_(0.0f), | |
lastPosition_(Vector3(M_INFINITY, M_INFINITY, M_INFINITY)) | |
{ | |
SubscribeToEvent(E_SCENEPOSTUPDATE, URHO3D_HANDLER(MotionWheel, OnUpdate)); | |
} | |
MotionWheel::~MotionWheel() | |
{ |
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
[Description("Uses noise derivatives to produce an extremely versatile noise")] | |
[PropertyData.PropertyIgnore("Interpolation")] | |
public partial class UberNoise : NoiseGenerator | |
{ | |
float lacunarity_ = 2.0f; | |
int octaves_ = 3; | |
float gain_ = 0.5f; | |
float perturbFeatures_ = 0.2f; | |
float sharpness_ = 0.7f; | |
float amplify_ = 0.7f; |
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
// Swap to pop array of structs | |
public class StructArray<T> where T : struct | |
{ | |
public T[] items_; | |
public int Count { get; private set; } | |
public int Capacity { get; private set; } | |
public StructArray(int capacity) | |
{ | |
Resize(capacity); |
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
#include "ImmediateRender.h" | |
#include "../Core/Context.h" | |
#include "../Graphics/VertexBuffer.h" | |
#include "../Graphics/Camera.h" | |
#include "../Graphics/Graphics.h" | |
#include "../Scene/Node.h" | |
#include "../Input/Input.h" | |
#include "../Graphics/View.h" | |
#include "../Graphics/Viewport.h" |
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
using Microsoft.Xna.Framework; | |
using Microsoft.Xna.Framework.Graphics; | |
using System; | |
using System.Collections.Generic; | |
using System.Runtime.InteropServices; | |
namespace DelveLib | |
{ | |
public class DecalMesh : IDisposable | |
{ |
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
#include "RenderScript.h" | |
#include "Buffer.h" | |
#include "Material.h" | |
#include "GraphicsDevice.h" | |
#include "Effect.h" | |
#include "LightShadow.h" | |
#include "Packing.h" | |
#include "Renderables.h" | |
#include "Renderer.h" |