Enable light sources and update film test app.
This commit is contained in:
@@ -156,6 +156,7 @@ public class RenderScript {
|
||||
native private void nProgramVertexBegin(int inID, int outID);
|
||||
native private void nProgramVertexSetType(int slot, int mID);
|
||||
native private void nProgramVertexSetTextureMatrixEnable(boolean enable);
|
||||
native private void nProgramVertexAddLight(int id);
|
||||
native private int nProgramVertexCreate();
|
||||
|
||||
native private void nLightBegin();
|
||||
@@ -720,7 +721,6 @@ public class RenderScript {
|
||||
public void bindAllocation(int slot, Allocation va) {
|
||||
nProgramVertexBindAllocation(mID, slot, va.mID);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void programVertexBegin(Element in, Element out) {
|
||||
@@ -743,6 +743,10 @@ public class RenderScript {
|
||||
nProgramVertexSetTextureMatrixEnable(enable);
|
||||
}
|
||||
|
||||
public void programVertexAddLight(Light l) {
|
||||
nProgramVertexAddLight(l.mID);
|
||||
}
|
||||
|
||||
public ProgramVertex programVertexCreate() {
|
||||
int id = nProgramVertexCreate();
|
||||
return new ProgramVertex(id);
|
||||
|
||||
Reference in New Issue
Block a user