diff --git a/libs/rs/rsScriptC_LibGL.cpp b/libs/rs/rsScriptC_LibGL.cpp index e9971a208e07d..bed0fcee8e38b 100644 --- a/libs/rs/rsScriptC_LibGL.cpp +++ b/libs/rs/rsScriptC_LibGL.cpp @@ -91,6 +91,12 @@ static void SC_bindProgramRaster(RsProgramRaster pv) // VP ////////////////////////////////////////////////////////////////////////////// +static void SC_vpLoadProjectionMatrix(const rsc_Matrix *m) +{ + GET_TLS(); + rsc->getVertex()->setProjectionMatrix(m); +} + static void SC_vpLoadModelMatrix(const rsc_Matrix *m) { GET_TLS(); @@ -355,6 +361,7 @@ static ScriptCState::SymbolTable_t gSyms[] = { { "rsgBindSampler", (void *)&SC_bindSampler }, { "rsgBindTexture", (void *)&SC_bindTexture }, + { "rsgProgramVertexLoadProjectionMatrix", (void *)&SC_vpLoadProjectionMatrix }, { "rsgProgramVertexLoadModelMatrix", (void *)&SC_vpLoadModelMatrix }, { "rsgProgramVertexLoadTextureMatrix", (void *)&SC_vpLoadTextureMatrix }, diff --git a/libs/rs/scriptc/rs_graphics.rsh b/libs/rs/scriptc/rs_graphics.rsh index 4dc351dbf9048..d6ef6e91002eb 100644 --- a/libs/rs/scriptc/rs_graphics.rsh +++ b/libs/rs/scriptc/rs_graphics.rsh @@ -13,6 +13,7 @@ extern void rsgBindProgramRaster(rs_program_raster); extern void rsgBindSampler(rs_program_fragment, int slot, rs_sampler); extern void rsgBindTexture(rs_program_fragment, int slot, rs_allocation); +extern void rsgProgramVertexLoadProjectionMatrix(const rs_matrix4x4 *); extern void rsgProgramVertexLoadModelMatrix(const rs_matrix4x4 *); extern void rsgProgramVertexLoadTextureMatrix(const rs_matrix4x4 *);