Skip to content

Instantly share code, notes, and snippets.

View lukaspj's full-sized avatar

Lukas Aldershaab lukaspj

View GitHub Profile
//*****************************************************************************
// Torque -- HLSL procedural shader
//*****************************************************************************
// Dependencies:
#include "core/rendering/shaders/terrain/terrain.hlsl"
#include "core/rendering/shaders/torque.hlsl"
// Features:
// Vert Position
//*****************************************************************************
// Torque -- GLSL procedural shader
//*****************************************************************************
#include "core/rendering/shaders/gl/hlslCompat.glsl"
// Dependencies:
#include "core/rendering/shaders/terrain/terrain.glsl"
#include "core/rendering/shaders/gl/torque.glsl"
// Features:
//*****************************************************************************
// Torque -- GLSL procedural shader
//*****************************************************************************
#include "core/rendering/shaders/gl/hlslCompat.glsl"
// Dependencies:
#include "core/rendering/shaders/terrain/terrain.glsl"
#include "core/rendering/shaders/gl/lighting.glsl"
#include "core/rendering/shaders/gl/torque.glsl"
//*****************************************************************************
// Torque -- GLSL procedural shader
//*****************************************************************************
#include "core/rendering/shaders/gl/hlslCompat.glsl"
// Dependencies:
#include "core/rendering/shaders/terrain/terrain.glsl"
#include "core/rendering/shaders/gl/torque.glsl"
// Features:
//*****************************************************************************
// Torque -- HLSL procedural shader
//*****************************************************************************
// Dependencies:
#include "core/rendering/shaders/terrain/terrain.hlsl"
#include "core/rendering/shaders/lighting.hlsl"
#include "core/rendering/shaders/torque.hlsl"
// Features:
void TerrainCellMaterial::_updateMaterialConsts( )
{
PROFILE_SCOPE( TerrainCellMaterial_UpdateMaterialConsts );
if (mMaterialInfos.empty())
{
return;
}
AlignedArray<Point3F> detailInfoArray(mMaterialInfos.size(), sizeof(Point3F));
AlignedArray<Point4F> detailScaleAndFadeArray(mMaterialInfos.size(), sizeof(Point4F));
#,x2byte,x2byte,x2byte,x2byte
"0","0000","4480","ffff","ffff"
"1","ffff","ffff","ffff","ffff"
"2","0000","0000","0000","3f80"
"3","0000","0000","0000","3f80"
"4","0000","3f80","0000","0000"
"5","0000","4000","0000","3f80"
"6","0000","0000","0000","4040"
"7","0000","3f80","0000","0000"
"8","0000","4080","0000","3f80"
//-------------------------- 11/18/2020 -- 21:28:52 -----
Warning: forcing the Torque profiler thread to run only on cpu 1.
Processor Init:
AMD Phenom, ~3.59 Ghz
FPU detected
MMX detected
SSE detected
SSE2 detected
HT detected
MP detected [8 cores, 16 logical, 1 physical]
# -----------------------------------------------------------------------------
# Copyright (c) 2020 Lukas Joergensen
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
@lukaspj
lukaspj / torque3d.Dockerfile
Last active November 9, 2020 17:07
Dockerized Torque3D
FROM ubuntu:20.04 AS builder
ENV TZ=Europe/Copenhagen
# First setup timezone to avoid prompt during install
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
# Then install dependencies
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \