Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 7b3d696

Browse files
Merge branch 'dev/markh/displaceOut' into 'main'
[REMIX-3048] supporting outwards displacement with POM See merge request lightspeedrtx/bridge-remix-nv!124
2 parents dc48247 + 27c3b15 commit 7b3d696

File tree

4 files changed

+24
-5
lines changed

4 files changed

+24
-5
lines changed

documentation/RemixApiChangelog.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## Remix API Changelog
2+
3+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
4+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5+
6+
## [0.4.2]
7+
8+
### Added
9+
- MaterialInfoOpaqueEXT.displaceOut
10+
11+
### Changed
12+
- renamed MaterialInfoOpaqueEXT.heightTextureStrength to MaterialInfoOpaqueEXT.displaceIn
13+
14+
### Fixed
15+
16+
### Removed

ext/remix/remix.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,13 +275,14 @@ namespace remix {
275275
thinFilmThickness_value = 200.f;
276276
alphaIsThinFilmThickness = false;
277277
heightTexture = {};
278-
heightTextureStrength = 0.0f;
278+
displaceIn = 0.0f;
279279
useDrawCallAlphaState = true;
280280
blendType_hasvalue = false;
281281
blendType_value = 0;
282282
invertedBlend = false;
283283
alphaTestType = 7;
284284
alphaReferenceValue = 0;
285+
displaceOut = 0.0f;
285286
static_assert(sizeof remixapi_MaterialInfoOpaqueEXT == 112);
286287
}
287288

ext/remix/remix_c.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
#define REMIXAPI_VERSION_MAJOR 0
5656
#define REMIXAPI_VERSION_MINOR 4
57-
#define REMIXAPI_VERSION_PATCH 1
57+
#define REMIXAPI_VERSION_PATCH 2
5858

5959

6060
// External
@@ -196,14 +196,15 @@ extern "C" {
196196
float thinFilmThickness_value;
197197
remixapi_Bool alphaIsThinFilmThickness;
198198
remixapi_Path heightTexture;
199-
float heightTextureStrength;
199+
float displaceIn;
200200
// If true, InstanceInfoBlendEXT is used as a source for alpha state
201201
remixapi_Bool useDrawCallAlphaState;
202202
remixapi_Bool blendType_hasvalue;
203203
int blendType_value;
204204
remixapi_Bool invertedBlend;
205205
int alphaTestType;
206206
uint8_t alphaReferenceValue;
207+
float displaceOut;
207208
} remixapi_MaterialInfoOpaqueEXT;
208209

209210
// Valid only if remixapi_MaterialInfo contains remixapi_MaterialInfoOpaqueEXT in pNext chain

src/util/util_remixapi.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,14 @@ void MaterialInfo::_dtor() {
221221
thinFilmThickness_value, \
222222
alphaIsThinFilmThickness, \
223223
heightTexture, \
224-
heightTextureStrength, \
224+
displaceIn, \
225225
useDrawCallAlphaState, \
226226
blendType_hasvalue, \
227227
blendType_value, \
228228
invertedBlend, \
229229
alphaTestType, \
230-
alphaReferenceValue
230+
alphaReferenceValue, \
231+
displaceOut
231232
uint32_t MaterialInfoOpaque::_calcSize() const {
232233
return fold_helper::calcSize(MaterialInfoOpaqueVars);
233234
}

0 commit comments

Comments
 (0)