This file contains 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
//***************************************************************************** | |
// Torque -- HLSL procedural shader | |
//***************************************************************************** | |
// Dependencies: | |
#include "core/rendering/shaders/terrain/terrain.hlsl" | |
#include "core/rendering/shaders/torque.hlsl" | |
// Features: | |
// Vert Position |
This file contains 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
//***************************************************************************** | |
// 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: |
This file contains 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
//***************************************************************************** | |
// 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" |
This file contains 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
//***************************************************************************** | |
// 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: |
This file contains 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
//***************************************************************************** | |
// 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: |
This file contains 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
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)); |
This file contains 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
#,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" |
This file contains 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
//-------------------------- 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] |
This file contains 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
# ----------------------------------------------------------------------------- | |
# 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: | |
# |
This file contains 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
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 \ |