-
-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be8a221
commit 7124ea7
Showing
27 changed files
with
180 additions
and
12 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
|
||
// Хранилище внешних шейдерных параметров, которые читаются в Blender_Recorder_StandartBinding.cpp | ||
class ShadersExternalData //--#SM+#-- | ||
{ | ||
public: | ||
Fmatrix m_script_params; // Матрица, значения которой доступны из Lua | ||
Fvector4 hud_params; // [zoom_rotate_factor, secondVP_zoom_factor, NULL, NULL] - Параметры худа оружия | ||
Fvector4 m_blender_mode; // x\y = [0 - default, 1 - night vision, 2 - thermo vision, ... см. common.h] - Режимы рендеринга | ||
// x - основной вьюпорт, y - второй вьюпорт, z = ?, w = [0 - идёт рендер обычного объекта, 1 - идёт рендер детальных объектов (трава, мусор)] | ||
|
||
ShadersExternalData() | ||
{ | ||
m_script_params = Fmatrix(); | ||
hud_params.set(0.f, 0.f, 0.f, 0.f); | ||
m_blender_mode.set(0.f, 0.f, 0.f, 0.f); | ||
} | ||
}; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#pragma once | ||
|
||
// Структура, хранящие уникальные данные для конкретного визуала --#SM+#-- | ||
// PS: Не оптимально хранить эти данные для каждой модели (и её составных), но ради удобства приходится жертвовать немного ОЗУ | ||
struct vis_object_data | ||
{ | ||
// == Weapons == // | ||
int m_max_bullet_bones; // Максимальное число костей в модели с привязкой к числу патронов (0 по дефолту) | ||
|
||
// == HUD == // | ||
float m_hud_custom_fov; // Кастомный FOV для рендера этой модели в режиме худа (-1.f по дефолту) | ||
|
||
// == Generic == // | ||
Fmatrix sh_camo_data; // Данные для камуфляжа (передаются в шейдеры) | ||
Fvector4 sh_custom_data; // Кастомные данные, содержимое которых зависит от использующих их шейдеров и кода (передаются в шейдеры) | ||
Fvector4 sh_entity_data; // Параметры "живых" объектов (передаются в шейдеры) | ||
/* | ||
1) health - здоровье объекта (-2 если такого параметра нет у объекта) | ||
2) radiation - радиация объекта (-2 если такого параметра нет у объекта) | ||
3) condition - кондишион объекта (-2 если такого параметра нет у объекта) | ||
4) irnv value - коэффициент "теплового излучения" модели (0.0 - 1.0) | ||
*/ | ||
|
||
// Инициализируем начальные данные | ||
vis_object_data() | ||
{ | ||
m_max_bullet_bones = 0; | ||
m_hud_custom_fov = -1.f; | ||
|
||
sh_camo_data = Fmatrix(); | ||
sh_custom_data.set(0.f, 0.f, 0.f, 0.f); | ||
sh_entity_data.set(-2.f, -2.f, -2.f, 0.f); | ||
} | ||
}; |
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
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
Oops, something went wrong.